mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-07-04 16:31:42 +00:00
Compare commits
No commits in common. "96896c37e5bf2dc80941e572c4a93c26ddcaf935" and "28b00e23a17b91243628b95d50b76bd4867a4fd8" have entirely different histories.
96896c37e5
...
28b00e23a1
1 changed files with 3 additions and 3 deletions
|
|
@ -94,8 +94,8 @@
|
|||
:set ($HostInfo->"doh-url") ("https://" . [ $EitherOr $HostName ($HostVal->"host") ] . "/dns-query");
|
||||
}
|
||||
|
||||
:if ($DohCurrent = $HostInfo->"doh-url" && [ $IsDNSResolving ] = true) do={
|
||||
$LogPrint debug $ScriptName ("Current DoH server is still up and resolving: " . $DohCurrent);
|
||||
:if ($DohCurrent = $HostInfo->"doh-url") do={
|
||||
$LogPrint debug $ScriptName ("Current DoH server is still up: " . $DohCurrent);
|
||||
:set ExitOK true;
|
||||
:error true;
|
||||
}
|
||||
|
|
@ -105,7 +105,7 @@
|
|||
}
|
||||
|
||||
:if ([ :len $DohCurrent ] > 0) do={
|
||||
$LogPrint info $ScriptName ("Current DoH server is down or not resolving, disabling: " . $DohCurrent);
|
||||
$LogPrint info $ScriptName ("Current DoH server is down, disabling: " . $DohCurrent);
|
||||
/ip/dns/set use-doh-server="";
|
||||
/ip/dns/cache/flush;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue