mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-21 17:28:59 +02:00
global-functions: $MailServerIsUp: use $LogPrintExit
This commit is contained in:
parent
596fb5f835
commit
9c3ce55ee4
1 changed files with 3 additions and 1 deletions
|
@ -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 ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue