mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-04 18:24:34 +02:00
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.
This commit is contained in:
parent
bbdc9c65f5
commit
4df1468e25
4 changed files with 13 additions and 13 deletions
|
@ -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" . ".");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue