1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 10:31:51 +00:00

Disable fast-open on Shadowsocks-Rust: aggregation is not working with this

This commit is contained in:
Ycarus (Yannick Chabanois) 2025-01-10 10:35:27 +01:00
parent 1054b96488
commit 3634433c68
2 changed files with 13 additions and 4 deletions

View file

@ -120,10 +120,10 @@ if [ -z "$(uci -q get shadowsocks-rust.hi1.keep_alive)" ]; then
uci -q batch <<-EOF > /dev/null
set shadowsocks-rust.hi1.keep_alive=15
set shadowsocks-rust.hi1.no_delay=1
set shadowsocks-rust.hi1.fast_open=1
set shadowsocks-rust.hi1.fast_open=0
set shadowsocks-rust.hi2.keep_alive=15
set shadowsocks-rust.hi2.no_delay=1
set shadowsocks-rust.hi2.fast_open=1
set shadowsocks-rust.hi2.fast_open=0
commit shadowsocks-rust
EOF
fi
@ -136,5 +136,14 @@ if [ -z "$(uci -q get shadowsocks-rust.dns.forward_address)" ]; then
EOF
fi
if [ "$(uci -q get shadowsocks-rust.hi1.fast_open)" = "1" ]; then
uci -q batch <<-EOF > /dev/null
set shadowsocks-rust.hi1.fast_open=0
set shadowsocks-rust.hi2.fast_open=0
commit shadowsocks-rust
EOF
fi
rm -f /tmp/luci-indexcache
exit 0

View file

@ -5,7 +5,7 @@ config ss_redir hi1
option mode 'tcp_and_udp'
option timeout '1000'
option keep_alive '15'
option fast_open 1
option fast_open 0
option verbose 0
option syslog 1
option reuse_port 0
@ -20,7 +20,7 @@ config ss_redir hi2
option mode 'tcp_and_udp'
option timeout '1000'
option keep_alive '15'
option fast_open 1
option fast_open 0
option verbose 0
option syslog 1
option reuse_port 0