mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add keep alive support to Shadowsocks-Rust init and interface
This commit is contained in:
parent
ef3eaf6ed1
commit
43107110a5
4 changed files with 19 additions and 2 deletions
|
@ -116,6 +116,15 @@ if [ "$(uci -q get shadowsocks-libev.sss1)" = "" ]; then
|
|||
commit shadowsocks-libev
|
||||
EOF
|
||||
fi
|
||||
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.hi2.keep_alive=15
|
||||
set shadowsocks-rust.hi2.no_delay=1
|
||||
commit shadowsocks-rust
|
||||
EOF
|
||||
fi
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue