1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2024-10-09 11:08:54 +02:00
parent ef3eaf6ed1
commit 43107110a5
4 changed files with 19 additions and 2 deletions

View file

@ -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