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

Check if Shadowsocks status is correc tin OMR-Tracker-ss

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-09-05 15:00:26 +02:00
parent 962b9ad7eb
commit 6272837d37

View file

@ -99,7 +99,7 @@ while true; do
}
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.ss_${server})" = "" ] && {
[ "${last}" -ge "${retry}" ] || [ "$(uci -q get openmptcprouter.omr.ss_${server})" != "up" ] && {
_log "Shadowsocks $type ${server} is up (can contact via http ${host})"
OMR_TRACKER_STATUS_MSG="Shadowsocks $type ${server} is up (can contact via http ${host})"
uci -q set openmptcprouter.omr.ss_${server}="up"