From 447e1d99f982d43f42d1e2fe3053e747c5df234a Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 6 Jul 2022 11:36:16 +0200 Subject: netwatch-dns: break long lines --- netwatch-dns | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'netwatch-dns') diff --git a/netwatch-dns b/netwatch-dns index 64c2d8e..67e0408 100644 --- a/netwatch-dns +++ b/netwatch-dns @@ -48,7 +48,8 @@ $ScriptLock $0; } else={ :if ([ :len $DnsFallback ] > 0) do={ :if ($DnsFallback != $DnsCurrent) do={ - $LogPrintExit2 info $0 ("Updating DNS servers to fallback: " . [ :tostr $DnsFallback ]) false; + $LogPrintExit2 info $0 ("Updating DNS servers to fallback: " . \ + [ :tostr $DnsFallback ]) false; /ip/dns/set servers=$DnsFallback; /ip/dns/cache/flush; } @@ -62,8 +63,10 @@ $ScriptLock $0; :local HostVal [ /tool/netwatch/get $Host ]; :local HostInfo [ $ParseKeyValueStore ($HostVal->"comment") ]; - :if ($HostVal->"status" = "up" && $HostInfo->"doh" = true && $HostInfo->"disabled" != true && $DohServer = "") do={ - :set DohServer [ $EitherOr ($HostInfo->"doh-url") ("https://" . $HostVal->"host" . "/dns-query") ]; + :if ($HostVal->"status" = "up" && $HostInfo->"doh" = true && \ + $HostInfo->"disabled" != true && $DohServer = "") do={ + :set DohServer [ $EitherOr ($HostInfo->"doh-url") \ + ("https://" . $HostVal->"host" . "/dns-query") ]; } } -- cgit v1.2.3-70-g09d2