mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-27 19:39:34 +00:00
netwatch-dns: fix indention
This commit is contained in:
parent
168b428682
commit
035a1fa39a
1 changed files with 11 additions and 11 deletions
|
|
@ -124,18 +124,18 @@
|
|||
:continue;
|
||||
}
|
||||
|
||||
:if ([ :typeof [ :find $Data "doh-check-OK" ] ] = "num") do={
|
||||
/ip/dns/set use-doh-server=($DohServer->"doh-url") verify-doh-cert=yes;
|
||||
:if ([ /certificate/settings/get crl-use ] = true) do={
|
||||
$LogPrintOnce warning $ScriptName ("Configured to use CRL, that can cause severe issue!");
|
||||
}
|
||||
/ip/dns/cache/flush;
|
||||
$LogPrint info $ScriptName ("Setting DoH server: " . ($DohServer->"doh-url"));
|
||||
:exit;
|
||||
} else={
|
||||
$LogPrint warning $ScriptName ("Received unexpected response from DoH server: " . \
|
||||
($DohServer->"doh-url"));
|
||||
:if ([ :typeof [ :find $Data "doh-check-OK" ] ] = "num") do={
|
||||
/ip/dns/set use-doh-server=($DohServer->"doh-url") verify-doh-cert=yes;
|
||||
:if ([ /certificate/settings/get crl-use ] = true) do={
|
||||
$LogPrintOnce warning $ScriptName ("Configured to use CRL, that can cause severe issue!");
|
||||
}
|
||||
/ip/dns/cache/flush;
|
||||
$LogPrint info $ScriptName ("Setting DoH server: " . ($DohServer->"doh-url"));
|
||||
:exit;
|
||||
} else={
|
||||
$LogPrint warning $ScriptName ("Received unexpected response from DoH server: " . \
|
||||
($DohServer->"doh-url"));
|
||||
}
|
||||
}
|
||||
} do={
|
||||
:global ExitOnError; $ExitOnError [ :jobname ] $Err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue