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

Increase ShadowSocks timeout

This commit is contained in:
Ycarus 2018-06-29 18:28:25 +02:00
parent 564e3e40be
commit 83736be9b6

View file

@ -21,14 +21,14 @@ if [ "$NBCPU" -gt 2 ]; then
fi
fi
if [ "$(uci -q get shadowsocks-libev.hi.timeout)" != "400" ]; then
if [ "$(uci -q get shadowsocks-libev.hi.timeout)" != "600" ]; then
uci -q batch <<-EOF > /dev/null
set shadowsocks-libev.hi.timeout=400
set shadowsocks-libev.hi.timeout=600
commit shadowsocks-libev
EOF
for c in $(seq 2 $NBCPU); do
uci -q batch <<-EOF > /dev/null
set shadowsocks-libev.hi$c.timeout=400
set shadowsocks-libev.hi$c.timeout=600
commit shadowsocks-libev
EOF
done