mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-07-04 16:31:42 +00:00
Compare commits
2 commits
28b00e23a1
...
96896c37e5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96896c37e5 | ||
|
|
6e37bab481 |
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") do={
|
||||
$LogPrint debug $ScriptName ("Current DoH server is still up: " . $DohCurrent);
|
||||
:if ($DohCurrent = $HostInfo->"doh-url" && [ $IsDNSResolving ] = true) do={
|
||||
$LogPrint debug $ScriptName ("Current DoH server is still up and resolving: " . $DohCurrent);
|
||||
:set ExitOK true;
|
||||
:error true;
|
||||
}
|
||||
|
|
@ -105,7 +105,7 @@
|
|||
}
|
||||
|
||||
:if ([ :len $DohCurrent ] > 0) do={
|
||||
$LogPrint info $ScriptName ("Current DoH server is down, disabling: " . $DohCurrent);
|
||||
$LogPrint info $ScriptName ("Current DoH server is down or not resolving, disabling: " . $DohCurrent);
|
||||
/ip/dns/set use-doh-server="";
|
||||
/ip/dns/cache/flush;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue