mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix ss tracker
This commit is contained in:
parent
877687892f
commit
0c5bf51318
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ while true; do
|
|||
[ "$host" = "$hosts" ] || {
|
||||
hosts="${hosts#* } $host"
|
||||
}
|
||||
if curl -sL --fail --socks5 "${proxy}" --max-time "${timeout}" "$host" -o /dev/null ; then
|
||||
if [ "$(curl -s -I -w %{http_code} --socks5 ${proxy} --max-time ${timeout} $host -o /dev/null)" != "000" ]; then
|
||||
nocontact=""
|
||||
[ "${last}" -ge "${retry}" ] || [ "$(uci -q get openmptcprouter.omr.shadowsocks)" = "" ] && {
|
||||
log "Shadowsocks is up (can contact ${host})"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue