File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff 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
1919EOF
2020
Original file line number Diff line number Diff 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 = {
You can’t perform that action at this time.
0 commit comments