mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $MailServerIsUp: use $LogPrintExit
This commit is contained in:
@ -317,8 +317,10 @@
|
|||||||
:local MailServer [ / tool e-mail get address ];
|
:local MailServer [ / tool e-mail get address ];
|
||||||
:local MailHost $MailServer;
|
:local MailHost $MailServer;
|
||||||
|
|
||||||
|
:global LogPrintExit;
|
||||||
|
|
||||||
:if ([ / tool netwatch print count-only where comment=$MailServer ] = 0) do={
|
: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;
|
:local MailHost $MailServer;
|
||||||
:if ([ :typeof [ :toip $MailHost ] ] != "ip" ) do={
|
:if ([ :typeof [ :toip $MailHost ] ] != "ip" ) do={
|
||||||
:set MailHost [ :resolve $MailServer ];
|
:set MailHost [ :resolve $MailServer ];
|
||||||
|
Reference in New Issue
Block a user