1
0
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:
Christian Hesse
2020-05-15 20:29:15 +02:00
parent b5d1e7aa83
commit 77338563b7

View File

@@ -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={