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:
parent
43e0d63063
commit
6b77296373
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue