mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Check that rules are really up in omr-tracker-ss (#502)
This commit is contained in:
commit
47ffa839cc
1 changed files with 6 additions and 0 deletions
|
@ -126,10 +126,16 @@ while true; do
|
||||||
if [ "$type" = "libev" ] && [ "$(uci -q get shadowsocks-libev.ss_rules.disabled)" != "1" ]; then
|
if [ "$type" = "libev" ] && [ "$(uci -q get shadowsocks-libev.ss_rules.disabled)" != "1" ]; then
|
||||||
_log "Reload Shadowsocks rules"
|
_log "Reload Shadowsocks rules"
|
||||||
/etc/init.d/shadowsocks-libev rules_up 2> /dev/null
|
/etc/init.d/shadowsocks-libev rules_up 2> /dev/null
|
||||||
|
if ! /etc/init.d/shadowsocks-libev rules_exist ; then
|
||||||
|
/etc/init.d/shadowsocks-libev restart 2>&1 >/dev/null
|
||||||
|
fi
|
||||||
_get_ip
|
_get_ip
|
||||||
elif [ "$type" = "rust" ] && [ "$(uci -q get shadowsocks-rust.ss_rules.disabled)" != "1" ]; then
|
elif [ "$type" = "rust" ] && [ "$(uci -q get shadowsocks-rust.ss_rules.disabled)" != "1" ]; then
|
||||||
_log "Reload Shadowsocks Rust rules"
|
_log "Reload Shadowsocks Rust rules"
|
||||||
/etc/init.d/shadowsocks-rust rules_up 2> /dev/null
|
/etc/init.d/shadowsocks-rust rules_up 2> /dev/null
|
||||||
|
if ! /etc/init.d/shadowsocks-rust rules_exist ; then
|
||||||
|
/etc/init.d/shadowsocks-rust restart 2>&1 >/dev/null
|
||||||
|
fi
|
||||||
_get_ip
|
_get_ip
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue