netwatch-notify: use logical operator, no literal "and"

Just like we do everywhere else.
This commit is contained in:
Christian Hesse 2024-02-26 08:13:34 +01:00
parent 471e0ead05
commit 1c2048628d

View file

@ -79,7 +79,7 @@ $ScriptLock $0;
:if ([ $IsDNSResolving ] = true) do={
:do {
:local Resolve [ :resolve ($HostInfo->"resolve") ];
:if ($Resolve != $HostVal->"host" and \
:if ($Resolve != $HostVal->"host" && \
[ :len [ /ip/dns/cache/find where name=($HostInfo->"resolve") data=[ :tostr ($HostVal->"host") ] ] ] = 0) do={
$LogPrintExit2 info $0 ("Name '" . $HostInfo->"resolve" . [ $IfThenElse \
($HostInfo->"resolve" != $HostInfo->"name") ("' for " . $Type . " '" . \