diff options
author | Christian Hesse <mail@eworm.de> | 2024-01-19 13:25:22 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-01-19 13:25:22 +0100 |
commit | 4b8854946dca65b63633d9ef0647cd15ba3155c3 (patch) | |
tree | fa6b2f3faf2a6ca8363d54afc94c1554fe796827 | |
parent | a2749b276003a90b95b9723e287542be56c0d0c1 (diff) |
fw-addr-lists: use prepared user-agent string with fetch
-rw-r--r-- | fw-addr-lists.rsc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fw-addr-lists.rsc b/fw-addr-lists.rsc index fec3729..50fe41c 100644 --- a/fw-addr-lists.rsc +++ b/fw-addr-lists.rsc @@ -10,6 +10,7 @@ :global GlobalFunctionsReady; :while ($GlobalFunctionsReady != true) do={ :delay 500ms; } +:global FetchUserAgent; :global FwAddrLists; :global FwAddrListTimeOut; @@ -57,7 +58,7 @@ $WaitFullyConnected; :if ($Data = false) do={ :do { :set Data ([ /tool/fetch check-certificate=$CheckCertificate output=user \ - ($List->"url") as-value ]->"data"); + http-header-field=({ $FetchUserAgent }) ($List->"url") as-value ]->"data"); } on-error={ :if ($I < 4) do={ $LogPrintExit2 debug $0 ("Failed downloading, " . $I . ". try: " . $List->"url") false; |