mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 02:51:50 +00:00
Change default ShadowSocks timeout
This commit is contained in:
parent
e0a6c8f282
commit
7b5cc9b9b4
2 changed files with 16 additions and 4 deletions
|
@ -10,16 +10,28 @@ if [ "$NBCPU" -gt 2 ]; then
|
|||
set shadowsocks-libev.hi$c.local_address="0.0.0.0"
|
||||
set shadowsocks-libev.hi$c.local_port=1100
|
||||
set shadowsocks-libev.hi$c.mode=tcp_and_udp
|
||||
set shadowsocks-libev.hi$c.timeout=60
|
||||
set shadowsocks-libev.hi$c.timeout=200
|
||||
set shadowsocks-libev.hi$c.fast_open=1
|
||||
set shadowsocks-libev.hi$c.reuse_port=1
|
||||
set shadowsocks-libev.hi$c.mptcp=1
|
||||
set shadowsocks-libev.hi$c.verbose=0
|
||||
commit shadowsocks-libev
|
||||
EOF
|
||||
rm -f /tmp/luci-indexcache
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$(uci -q get shadowsocks-libev.hi.timeout)" = "200" ]; then
|
||||
uci -q batch <<-EOF > /dev/null
|
||||
set shadowsocks-libev.hi.timeout=200
|
||||
commit shadowsocks-libev
|
||||
EOF
|
||||
for c in $(seq 2 $NBCPU); do
|
||||
uci -q batch <<-EOF > /dev/null
|
||||
set shadowsocks-libev.hi$c.timeout=200
|
||||
commit shadowsocks-libev
|
||||
EOF
|
||||
done
|
||||
fi
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
||||
|
|
|
@ -3,7 +3,7 @@ config ss_redir hi
|
|||
option local_address '::'
|
||||
option local_port '1100'
|
||||
option mode 'tcp_and_udp'
|
||||
option timeout '60'
|
||||
option timeout '200'
|
||||
option fast_open 1
|
||||
option verbose 0
|
||||
option reuse_port 1
|
||||
|
@ -15,7 +15,7 @@ config ss_redir hi2
|
|||
option local_address '0.0.0.0'
|
||||
option local_port '1100'
|
||||
option mode 'tcp_and_udp'
|
||||
option timeout '60'
|
||||
option timeout '200'
|
||||
option fast_open 1
|
||||
option verbose 0
|
||||
option reuse_port 1
|
||||
|
|
Loading…
Reference in a new issue