aboutsummaryrefslogtreecommitdiffstats
path: root/netwatch-notify.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-02-26 23:17:07 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-02-28 23:01:43 +0100
commit45875ad68e4898d5c66ee08335e0c32fe04a95a6 (patch)
tree25552731b58948d58cfcba0000b72bd01e25ae84 /netwatch-notify.rsc
parentb1199ca50a16c9accb9a49ae334c4620a69993cc (diff)
netwatch-notify: simplify the check
Diffstat (limited to 'netwatch-notify.rsc')
-rw-r--r--netwatch-notify.rsc3
1 files changed, 1 insertions, 2 deletions
diff --git a/netwatch-notify.rsc b/netwatch-notify.rsc
index 186ac0a..53ea7e3 100644
--- a/netwatch-notify.rsc
+++ b/netwatch-notify.rsc
@@ -79,8 +79,7 @@ $ScriptLock $0;
:if ([ $IsDNSResolving ] = true) do={
:do {
:local Resolve [ :resolve ($HostInfo->"resolve") ];
- :if ($Resolve != $HostVal->"host" && \
- [ :len [ /ip/dns/cache/find where name=($HostInfo->"resolve") data=[ :tostr ($HostVal->"host") ] ] ] = 0) do={
+ :if ([ :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 . " '" . \
$HostInfo->"name") "" ] . "' resolves to different address " . $Resolve . \