mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-07-31 16:24:31 +02:00
netwatch-dns: give warning on CRL use
This commit is contained in:
parent
9737bfa46a
commit
09dcd51feb
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
||||||
:global IsDNSResolving;
|
:global IsDNSResolving;
|
||||||
:global IsTimeSync;
|
:global IsTimeSync;
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
|
:global LogPrintOnce;
|
||||||
:global ParseKeyValueStore;
|
:global ParseKeyValueStore;
|
||||||
:global ScriptLock;
|
:global ScriptLock;
|
||||||
|
|
||||||
|
@ -126,6 +127,9 @@
|
||||||
:if ($Data != false) do={
|
:if ($Data != false) do={
|
||||||
:if ([ :typeof [ :find $Data "doh-check-OK" ] ] = "num") do={
|
:if ([ :typeof [ :find $Data "doh-check-OK" ] ] = "num") do={
|
||||||
/ip/dns/set use-doh-server=($DohServer->"doh-url") verify-doh-cert=yes;
|
/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;
|
/ip/dns/cache/flush;
|
||||||
$LogPrint info $ScriptName ("Setting DoH server: " . ($DohServer->"doh-url"));
|
$LogPrint info $ScriptName ("Setting DoH server: " . ($DohServer->"doh-url"));
|
||||||
:error true;
|
:error true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue