1
0
Fork 0
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:
Ycarus 2019-02-13 07:43:45 +01:00
parent db1821db4a
commit d5bc21fe6a

View file

@ -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})"