1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 02:51:50 +00:00

Fully fix bypass reload

This commit is contained in:
Ycarus 2018-10-13 13:53:54 +02:00
parent e75b0c9288
commit 7159fde4a9

View file

@ -38,10 +38,10 @@ while true; do
log "Shadowsocks is up (can contact ${host})"
uci -q set openmptcprouter.vps.shadowsocks="up"
get_ip
/etc/init.d/shadowsocks-libev rules_up 2> /dev/null
[ "$(uci -q get openmptcprouter.vps.ipv4)" = "" ] || ([ "$(sysctl -n net.ipv6.conf.all.disable_ipv6 | tr -d '\n')" = "0" ] && [ "$(uci -q get openmptcprouter.vps.ipv6)" = "" ]) && get_ip
/etc/init.d/omr-bypass reload 2> /dev/null
}
[ "$(uci -q get openmptcprouter.vps.ipv4)" = "" ] || ([ "$(sysctl -n net.ipv6.conf.all.disable_ipv6 | tr -d '\n')" = "0" ] && [ "$(uci -q get openmptcprouter.vps.ipv6)" = "" ]) && get_ip
/etc/init.d/shadowsocks-libev rules_up 2> /dev/null
last=0
else
last=$((last + 1 ))