mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-13 05:19:30 +00:00
netwatch-dns: drop early check...
... as the later check should handle that just fine.
This commit is contained in:
parent
96896c37e5
commit
c697c321e6
1 changed files with 0 additions and 7 deletions
|
|
@ -73,13 +73,6 @@
|
||||||
|
|
||||||
:local DohCurrent [ /ip/dns/get use-doh-server ];
|
:local DohCurrent [ /ip/dns/get use-doh-server ];
|
||||||
:local DohServers ({});
|
:local DohServers ({});
|
||||||
|
|
||||||
:if ([ :len $DohCurrent ] > 0 && [ $IsDNSResolving ] = false && [ $IsTimeSync ] = false) do={
|
|
||||||
$LogPrint info $ScriptName ("Time is not sync, disabling DoH: " . $DohCurrent);
|
|
||||||
/ip/dns/set use-doh-server="";
|
|
||||||
:set DohCurrent "";
|
|
||||||
}
|
|
||||||
|
|
||||||
:foreach Host in=[ /tool/netwatch/find where comment~"\\bdoh\\b" status="up" ] do={
|
:foreach Host in=[ /tool/netwatch/find where comment~"\\bdoh\\b" status="up" ] do={
|
||||||
:local HostVal [ /tool/netwatch/get $Host ];
|
:local HostVal [ /tool/netwatch/get $Host ];
|
||||||
:local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ];
|
:local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue