mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +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}" \
|
||||
+time="$OMR_TRACKER_TIMEOUT" \
|
||||
+tries=1 \
|
||||
openmptcprouter.com
|
||||
) && echo "$ret" | grep -sq "94.23.252.192" && {
|
||||
one.one.one.one
|
||||
) && echo "$ret" | grep -sq "1.1.1.1" && {
|
||||
OMR_TRACKER_LATENCY=$(echo "$ret" | awk '/Query time/{print $4}')
|
||||
_update_rto "$OMR_TRACKER_LATENCY"
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue