mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-10 10:04:28 +02:00
mod/notification-ntfy: fix ntfy overrides
This commit is contained in:
parent
f75e701be3
commit
5135e836b8
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@
|
||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
:local Url ("https://" . $NtfyServer . "/" . [ $UrlEncode $NtfyTopic ]);
|
:local Url ("https://" . $Server . "/" . [ $UrlEncode $Topic ]);
|
||||||
:local Headers ({ [ $FetchUserAgentStr ($Notification->"origin") ]; \
|
:local Headers ({ [ $FetchUserAgentStr ($Notification->"origin") ]; \
|
||||||
("Priority: " . [ $IfThenElse ($Notification->"silent") "low" "default" ]); \
|
("Priority: " . [ $IfThenElse ($Notification->"silent") "low" "default" ]); \
|
||||||
("Title: " . "[" . $IdentityExtra . $Identity . "] " . ($Notification->"subject")) });
|
("Title: " . "[" . $IdentityExtra . $Identity . "] " . ($Notification->"subject")) });
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
:do {
|
:do {
|
||||||
:if ($NtfyServer = "ntfy.sh") do={
|
:if ($Server = "ntfy.sh") do={
|
||||||
:if ([ $CertificateAvailable "ISRG Root X1" ] = false) do={
|
:if ([ $CertificateAvailable "ISRG Root X1" ] = false) do={
|
||||||
$LogPrint warning $0 ("Downloading required certificate failed.");
|
$LogPrint warning $0 ("Downloading required certificate failed.");
|
||||||
:error false;
|
:error false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue