mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 01:49:28 +00:00
mod/notification-telegram: $FlushTelegramQueue: check for cert, again
Chances are that messages have been queued before system was fully up or connected. Thus the certificate may be missing, and it should be checked again for on flush.
This commit is contained in:
parent
c81618b571
commit
6630d35eea
1 changed files with 6 additions and 0 deletions
|
|
@ -21,6 +21,7 @@
|
|||
:global TelegramQueue;
|
||||
:global TelegramMessageIDs;
|
||||
|
||||
:global CertificateAvailable;
|
||||
:global IsFullyConnected;
|
||||
:global LogPrint;
|
||||
|
||||
|
|
@ -29,6 +30,11 @@
|
|||
:return false;
|
||||
}
|
||||
|
||||
:if ([ $CertificateAvailable "Go Daddy Root Certificate Authority - G2" ] = false) do={
|
||||
$LogPrint warning $0 ("Downloading required certificate failed.");
|
||||
:return false;
|
||||
}
|
||||
|
||||
:local AllDone true;
|
||||
:local QueueLen [ :len $TelegramQueue ];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue