mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Change ss test
This commit is contained in:
parent
db1821db4a
commit
d5bc21fe6a
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ while true; do
|
|||
[ "$host" = "$hosts" ] || {
|
||||
hosts="${hosts#* } $host"
|
||||
}
|
||||
if curl -s --socks5 "${proxy}" --max-time "${timeout}" "$host" &>/dev/null ; then
|
||||
if curl -sL --fail --socks5 "${proxy}" --max-time "${timeout}" "$host" -o /dev/null ; 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