mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Include User Agent information when update bogons list
This commit is contained in:
parent
6cc74faa44
commit
7fbb45be08
@ -23,6 +23,14 @@
|
||||
# Global variables
|
||||
proc_error=""
|
||||
|
||||
do_not_send_uniqueid=$(/usr/local/sbin/read_xml_tag.sh boolean system/do_not_send_uniqueid)
|
||||
if [ "${do_not_send_uniqueid}" != "true" ]; then
|
||||
uniqueid=$(/usr/sbin/gnid)
|
||||
export HTTP_USER_AGENT="${product}/${product_version}:${uniqueid}"
|
||||
else
|
||||
export HTTP_USER_AGENT="${product}/${product_version}"
|
||||
fi
|
||||
|
||||
# Download and extract if necessary
|
||||
process_url() {
|
||||
local file=$1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user