aboutsummaryrefslogtreecommitdiffstats
path: root/check-routeros-update.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-29 11:09:22 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-29 11:11:17 +0100
commit4df1468e2569dfc1603876e24a9be933dc8cf8f2 (patch)
treebd394e0e9f782c813632178c4aa5ff94cdafbf44 /check-routeros-update.rsc
parentbbdc9c65f50d2d290e4cd15a8c49ec0cb36a347d (diff)
global-functions: rename $FetchUserAgent -> $FetchUserAgentStr
... to make sure the function does not clash with the variable we had before, as this causes issue with news and changes notification.
Diffstat (limited to 'check-routeros-update.rsc')
-rw-r--r--check-routeros-update.rsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/check-routeros-update.rsc b/check-routeros-update.rsc
index fde7cb5..c9ab93b 100644
--- a/check-routeros-update.rsc
+++ b/check-routeros-update.rsc
@@ -24,7 +24,7 @@
:global DeviceInfo;
:global EscapeForRegEx;
- :global FetchUserAgent;
+ :global FetchUserAgentStr;
:global LogPrint;
:global ScriptFromTerminal;
:global ScriptLock;
@@ -109,7 +109,7 @@
:do {
:set Result [ /tool/fetch check-certificate=yes-without-crl \
($SafeUpdateUrl . $Update->"channel" . "?installed=" . $Update->"installed-version" . \
- "&latest=" . $Update->"latest-version") http-header-field=({ [ $FetchUserAgent $ScriptName ] }) \
+ "&latest=" . $Update->"latest-version") http-header-field=({ [ $FetchUserAgentStr $ScriptName ] }) \
output=user as-value ];
} on-error={
$LogPrint warning $ScriptName ("Failed receiving safe version for " . $Update->"channel" . ".");