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;
|
||||
}
|
||||
|
||||
:local Url ("https://" . $NtfyServer . "/" . [ $UrlEncode $NtfyTopic ]);
|
||||
:local Url ("https://" . $Server . "/" . [ $UrlEncode $Topic ]);
|
||||
:local Headers ({ [ $FetchUserAgentStr ($Notification->"origin") ]; \
|
||||
("Priority: " . [ $IfThenElse ($Notification->"silent") "low" "default" ]); \
|
||||
("Title: " . "[" . $IdentityExtra . $Identity . "] " . ($Notification->"subject")) });
|
||||
|
@ -97,7 +97,7 @@
|
|||
}
|
||||
|
||||
:do {
|
||||
:if ($NtfyServer = "ntfy.sh") do={
|
||||
:if ($Server = "ntfy.sh") do={
|
||||
:if ([ $CertificateAvailable "ISRG Root X1" ] = false) do={
|
||||
$LogPrint warning $0 ("Downloading required certificate failed.");
|
||||
:error false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue