mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix DNS check
This commit is contained in:
parent
66f8f2b2fe
commit
1882a94f45
1 changed files with 2 additions and 2 deletions
|
@ -150,8 +150,8 @@ _dns() {
|
||||||
-b "${deviceip}" \
|
-b "${deviceip}" \
|
||||||
+time="$OMR_TRACKER_TIMEOUT" \
|
+time="$OMR_TRACKER_TIMEOUT" \
|
||||||
+tries=1 \
|
+tries=1 \
|
||||||
openmptcprouter.com
|
one.one.one.one
|
||||||
) && echo "$ret" | grep -sq "94.23.252.192" && {
|
) && echo "$ret" | grep -sq "1.1.1.1" && {
|
||||||
OMR_TRACKER_LATENCY=$(echo "$ret" | awk '/Query time/{print $4}')
|
OMR_TRACKER_LATENCY=$(echo "$ret" | awk '/Query time/{print $4}')
|
||||||
_update_rto "$OMR_TRACKER_LATENCY"
|
_update_rto "$OMR_TRACKER_LATENCY"
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue