]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commit
ipblocklist-functions.pl: Specify an IPFire user agent for the downloads
authorAdolf Belka <adolf.belka@ipfire.org>
Wed, 12 Mar 2025 14:46:10 +0000 (15:46 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Mar 2025 15:09:39 +0000 (15:09 +0000)
commit80dc5de20c2fb6e67e7b9a66cab540336f1469bd
tree9a9c446ac7efed9165ff0690ced20950dc8053d7
parent11cd611e5c84d124c7a5fabc1792580c0c662df4
ipblocklist-functions.pl: Specify an IPFire user agent for the downloads

- As discussed at the IPFire conf call in March 2025, this patch provides an IPFire
   specific User Agent string for the IP Block Lists downloads using LWP::UserAgent.
- It turned out that there was already a function in general-functions.pl that creates
   an IPFire Useer Agent string. This was used for this IP Blocklist download.
- Currently it gave me the string IPFire/2.29/192.
- This was tested out with the Threatview.io IP blocklist download and it worked fine.
- If this patch is approved and merged then I will let contact Threatview.io to let them
   know what our User Agent string is.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/ipblocklist-functions.pl