mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-21 09:25:42 +02:00
netwatch-notify: use logical operator, no literal "and"
Just like we do everywhere else.
This commit is contained in:
parent
471e0ead05
commit
1c2048628d
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ $ScriptLock $0;
|
||||||
:if ([ $IsDNSResolving ] = true) do={
|
:if ([ $IsDNSResolving ] = true) do={
|
||||||
:do {
|
:do {
|
||||||
:local Resolve [ :resolve ($HostInfo->"resolve") ];
|
: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={
|
[ :len [ /ip/dns/cache/find where name=($HostInfo->"resolve") data=[ :tostr ($HostVal->"host") ] ] ] = 0) do={
|
||||||
$LogPrintExit2 info $0 ("Name '" . $HostInfo->"resolve" . [ $IfThenElse \
|
$LogPrintExit2 info $0 ("Name '" . $HostInfo->"resolve" . [ $IfThenElse \
|
||||||
($HostInfo->"resolve" != $HostInfo->"name") ("' for " . $Type . " '" . \
|
($HostInfo->"resolve" != $HostInfo->"name") ("' for " . $Type . " '" . \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue