mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $MailServerIsUp: use $LogPrintExit
This commit is contained in:
parent
596fb5f835
commit
9c3ce55ee4
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue