Skip to content

Commit ea46098

Browse files
authored
Merge pull request #1889 from zxlhhyccc/tuic
Tuic
2 parents 1b8e38a + e59321c commit ea46098

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

luci-app-ssr-plus/root/etc/uci-defaults/luci-ssr-plus

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ uci -q batch <<-EOF
1414
set firewall.shadowsocksr=include
1515
set firewall.shadowsocksr.type=script
1616
set firewall.shadowsocksr.path=/var/etc/shadowsocksr.include
17-
set firewall.shadowsocksr.reload=1
17+
$(command -v fw4 >/dev/null 2>&1 || echo "set firewall.shadowsocksr.reload=1")
1818
commit firewall
1919
EOF
2020

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)