mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-08 19:09:29 +00:00
netwatch-dns: add active check to keep DoH server
This commit is contained in:
parent
28b00e23a1
commit
6e37bab481
1 changed files with 2 additions and 2 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue