aboutsummaryrefslogtreecommitdiffstats
path: root/fw-addr-lists.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 /fw-addr-lists.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 'fw-addr-lists.rsc')
-rw-r--r--fw-addr-lists.rsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/fw-addr-lists.rsc b/fw-addr-lists.rsc
index 887263e..68775b4 100644
--- a/fw-addr-lists.rsc
+++ b/fw-addr-lists.rsc
@@ -19,7 +19,7 @@
:global CertificateAvailable;
:global EitherOr;
- :global FetchUserAgent;
+ :global FetchUserAgentStr;
:global LogPrint;
:global LogPrintOnce;
:global ScriptLock;
@@ -65,7 +65,7 @@
:if ($Data = false) do={
:do {
:set Data ([ /tool/fetch check-certificate=$CheckCertificate output=user \
- http-header-field=({ [ $FetchUserAgent $ScriptName ] }) ($List->"url") as-value ]->"data");
+ http-header-field=({ [ $FetchUserAgentStr $ScriptName ] }) ($List->"url") as-value ]->"data");
} on-error={
:if ($I < 5) do={
$LogPrint debug $ScriptName ("Failed downloading, " . $I . ". try: " . $List->"url");