Browse Source

fix netflix shunk relay

lean 5 years ago
parent
commit
1080c51e0a
2 changed files with 4 additions and 2 deletions
  1. 1 1
      luci-app-ssr-plus/Makefile
  2. 3 1
      luci-app-ssr-plus/root/etc/init.d/shadowsocksr

+ 1 - 1
luci-app-ssr-plus/Makefile

@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=luci-app-ssr-plus
 PKG_VERSION:=181
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 include $(INCLUDE_DIR)/package.mk
 

+ 3 - 1
luci-app-ssr-plus/root/etc/init.d/shadowsocksr

@@ -653,7 +653,9 @@ start_rules() {
 	local lan_ac_ips=$(uci_get_by_type access_control lan_ac_ips)
 	local lan_ac_mode=$(uci_get_by_type access_control lan_ac_mode)
 	local router_proxy=$(uci_get_by_type access_control router_proxy)
-	if [ -n "$UDP_RELAY_SERVER" ]; then
+	if [ "$GLOBAL_SERVER" == "$UDP_RELAY_SERVER" -a "$kcp_flag" == "0" ]; then
+		ARG_UDP="-u"
+		elif [ -n "$UDP_RELAY_SERVER" ]; then
 		if [ "$kcp_flag" == "0" ]; then
 			local type=$(uci_get_by_name $UDP_RELAY_SERVER type)
 			case "$type" in