global-functions: $MailServerIsUp: use $LogPrintExit

This commit is contained in:
Christian Hesse 2020-04-03 16:48:22 +02:00
parent 596fb5f835
commit 9c3ce55ee4

View file

@ -317,8 +317,10 @@
:local MailServer [ / tool e-mail get address ];
:local MailHost $MailServer;
:global LogPrintExit;
:if ([ / tool netwatch print count-only where comment=$MailServer ] = 0) do={
:log warning ("Adding netwatch entry for mail server.");
$LogPrintExit warning ("Adding netwatch entry for mail server.") false;
:local MailHost $MailServer;
:if ([ :typeof [ :toip $MailHost ] ] != "ip" ) do={
:set MailHost [ :resolve $MailServer ];