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 (#604)

This commit is contained in:
suyuan 2025-02-20 15:25:50 +08:00 committed by GitHub
commit 6ad25d52a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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