diff options
author | Christian Hesse <mail@eworm.de> | 2022-07-06 11:36:16 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-07-06 11:37:02 +0200 |
commit | 447e1d99f982d43f42d1e2fe3053e747c5df234a (patch) | |
tree | 3ae5900605733cf16de9b80318877f56ee054af1 /netwatch-dns | |
parent | 0a45e255629aff82f1c95be322d735e72e9b9831 (diff) |
netwatch-dns: break long lines
Diffstat (limited to 'netwatch-dns')
-rw-r--r-- | netwatch-dns | 9 |
1 files changed, 6 insertions, 3 deletions
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") ]; } } |