1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2025-02-19 20:10:32 +01:00
parent 6b1c634a9f
commit 663eb52af9

View file

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