2
0
Эх сурвалжийг харах

luci-app-ssr-plus: gen_config.lua: Fix `scoks` is global server not run issues.

zxl hhyccc 11 сар өмнө
parent
commit
f4aca463cd

+ 2 - 2
luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua

@@ -184,7 +184,7 @@ if proto:find("tcp") and socks_port ~= "0" then
         -- socks
         protocol = "socks",
         port = tonumber(socks_port),
-        settings = {
+        settings = (socks_server.server ~= "same") and {
 			auth = socks_server.socks5_auth,
 			udp = true,
 			mixed = (socks_server.socks5_mixed == '1') and true or false,
@@ -194,7 +194,7 @@ if proto:find("tcp") and socks_port ~= "0" then
 					pass = socks_server.socks5_pass
 				}
 			} or nil
-		}
+		} or nil
     })
 end