global-functions: $MailServerIsUp: use prepared value

This commit is contained in:
Christian Hesse 2020-05-15 20:29:15 +02:00
parent b5d1e7aa83
commit 77338563b7

View file

@ -341,7 +341,7 @@
:if ([ :typeof [ :toip $MailHost ] ] != "ip" ) do={ :if ([ :typeof [ :toip $MailHost ] ] != "ip" ) do={
:set MailHost [ :resolve $MailServer ]; :set MailHost [ :resolve $MailServer ];
} }
/ tool netwatch add comment=$MailServer host=[ :resolve $MailServer ]; / tool netwatch add comment=$MailServer host=$MailHost;
} }
:if ([ / tool netwatch get [ find where comment=$MailServer ] status ] = "up") do={ :if ([ / tool netwatch get [ find where comment=$MailServer ] status ] = "up") do={