mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Remove FW rules for shadowsocks* if down in all cases
This commit is contained in:
parent
6b1c634a9f
commit
663eb52af9
1 changed files with 2 additions and 2 deletions
|
@ -164,10 +164,10 @@ while true; do
|
|||
OMR_TRACKER_STATUS_MSG="Shadowsocks $type ${server} is down (can't contact via http ${nocontact})"
|
||||
uci -q set openmptcprouter.omr.ss_${server}="down"
|
||||
uci -q commit openmptcprouter.omr
|
||||
if [ "$(uci show openmptcprouter.omr | grep ss_ | grep up)" = "" ]; then
|
||||
#if [ -z "$(uci show openmptcprouter.omr | grep ss_ | grep up)" ]; then
|
||||
[ "$type" = "libev" ] && /etc/init.d/shadowsocks-libev rules_down 2> /dev/null
|
||||
[ "$type" = "rust" ] && /etc/init.d/shadowsocks-rust rules_down 2> /dev/null
|
||||
fi
|
||||
#fi
|
||||
_get_ip
|
||||
server_ping=false
|
||||
if [ "$type" = "libev" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue