Skip to content

Commit e59321c

Browse files
author
zxlhhyccc
committed
luci-app-ssr-plus: replace the xray hysteria2 obfuscation from udpmasks to finalmask.udp
1 parent 522a3fd commit e59321c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -410,12 +410,14 @@ end
410410
keepAlivePeriod = (server.flag_quicparam == "1" and server.keepaliveperiod) and tonumber(server.keepaliveperiod) or nil,
411411
disablePathMTUDiscovery = (server.flag_quicparam == "1" and tostring(server.disablepathmtudiscovery) == "1") and true or nil
412412
} or nil,
413-
udpmasks = (server.flag_obfs == "1" and (server.v2ray_protocol == "hysteria2" and server.obfs_type and server.obfs_type ~= "")) and {
414-
{
415-
type = server.obfs_type,
416-
settings = server.salamander and {
417-
password = server.salamander
418-
} or nil
413+
finalmask = (server.flag_obfs == "1" and (server.v2ray_protocol == "hysteria2" and server.obfs_type and server.obfs_type ~= "")) and {
414+
udp = {
415+
{
416+
type = server.obfs_type,
417+
settings = server.salamander and {
418+
password = server.salamander
419+
} or nil
420+
}
419421
}
420422
} or nil,
421423
sockopt = {

0 commit comments

Comments
 (0)