소스 검색

luci-app-ssr-plus: disable usage of sing protocol for now

SN core is not ready for Fullcone NAT support.
Disable it for Xray users.

Signed-off-by: Tianling Shen <[email protected]>
Tianling Shen 3 년 전
부모
커밋
cfd4ecaf11
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua

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

@@ -55,14 +55,15 @@ function trojan_shadowsocks()
 
 	if server.v2ray_protocol == "shadowsocksr" then
 		server.v2ray_protocol = "shadowsocks"
-	-- elseif (server.v2ray_protocol == "shadowsocks") and (server.mux ~= "1") and (not (outbound_settings.plugin or server.transport ~= "tcp" or server.tls or server.xtls)) then
-	-- 	server.v2ray_protocol = "shadowsocks_sing"
-	-- 	outbound_settings = outbound_settings.servers[1]
+	--[[ elseif (server.v2ray_protocol == "shadowsocks") and (server.mux ~= "1") and (not (outbound_settings.plugin or server.transport ~= "tcp" or server.tls or server.xtls)) then
+		server.v2ray_protocol = "shadowsocks_sing"
+		outbound_settings = outbound_settings.servers[1]
 	elseif (server.v2ray_protocol == "trojan") and (server.tls and server.mux ~= "1") and (not (server.transport ~= "tcp" or server.xtls)) then
 		server.v2ray_protocol = "trojan_sing"
 		outbound_settings = outbound_settings.servers[1]
 		outbound_settings.serverName = server.tls_host
 		outbound_settings.insecure = (server.insecure == "1") and true or false
+		]]
 	end
 end
 function socks_http()