aboutsummaryrefslogtreecommitdiffstats
path: root/fw-addr-lists.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-16 23:10:47 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-16 23:10:47 +0100
commiteb7919c1d8b4ad5c77e0d120136c4f54e1e157e6 (patch)
tree074d9babad2d09ad05399b2a3a2d1d9b84f6b0f7 /fw-addr-lists.rsc
parent576a2c97cf88b7d1b36907469fb6fd34618523b3 (diff)
global-functions: generate user agent string in function...
... and add the caller and my shortened url.
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 64233ac..3a422e8 100644
--- a/fw-addr-lists.rsc
+++ b/fw-addr-lists.rsc
@@ -14,12 +14,12 @@
:do {
:local ScriptName [ :jobname ];
- :global FetchUserAgent;
:global FwAddrLists;
:global FwAddrListTimeOut;
:global CertificateAvailable;
:global EitherOr;
+ :global FetchUserAgent;
: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 }) ($List->"url") as-value ]->"data");
+ http-header-field=({ [ $FetchUserAgent $ScriptName ] }) ($List->"url") as-value ]->"data");
} on-error={
:if ($I < 4) do={
$LogPrint debug $ScriptName ("Failed downloading, " . $I . ". try: " . $List->"url");