Quellcode durchsuchen

luci-app-ssr-plus: replace the xray hysteria2 obfuscation from udpmasks to finalmask.udp

zxlhhyccc vor 3 Tagen
Ursprung
Commit
e59321cefc
1 geänderte Dateien mit 8 neuen und 6 gelöschten Zeilen
  1. 8 6
      luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua

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

@@ -410,12 +410,14 @@ end
 					keepAlivePeriod = (server.flag_quicparam == "1" and server.keepaliveperiod) and tonumber(server.keepaliveperiod) or nil,
 					disablePathMTUDiscovery = (server.flag_quicparam == "1" and tostring(server.disablepathmtudiscovery) == "1") and true or nil
 				} or nil,
-				udpmasks = (server.flag_obfs == "1" and (server.v2ray_protocol == "hysteria2" and server.obfs_type and server.obfs_type ~= "")) and {
-					{
-						type = server.obfs_type,
-						settings = server.salamander and {
-							password = server.salamander
-						} or nil
+				finalmask = (server.flag_obfs == "1" and (server.v2ray_protocol == "hysteria2" and server.obfs_type and server.obfs_type ~= "")) and {
+					udp = {
+						{
+							type = server.obfs_type,
+							settings = server.salamander and {
+								password = server.salamander
+							} or nil
+						}
 					}
 				} or nil,
 				sockopt = {