mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $MailServerIsUp: use prepared value
This commit is contained in:
@@ -341,7 +341,7 @@
|
||||
:if ([ :typeof [ :toip $MailHost ] ] != "ip" ) do={
|
||||
: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={
|
||||
|
Reference in New Issue
Block a user