1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix display up/down of ShadowSocks

This commit is contained in:
Ycarus 2018-06-27 12:25:24 +02:00
parent 43e0d63063
commit 6b77296373

View file

@ -24,7 +24,7 @@ while true; do
hosts="${hosts#* } $host" hosts="${hosts#* } $host"
} }
if curl -s --socks5 "${proxy}" --max-time "${timeout}" "$host" &>/dev/null ; then if curl -s --socks5 "${proxy}" --max-time "${timeout}" "$host" &>/dev/null ; then
[ "${last}" -gt "${retry}" ] && log "Shadowsocks is up (can contact ${host})" [ "${last}" -ge "${retry}" ] && log "Shadowsocks is up (can contact ${host})"
/etc/init.d/shadowsocks-libev rules_up 2> /dev/null /etc/init.d/shadowsocks-libev rules_up 2> /dev/null
last=0 last=0
else else