summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.update_bogons.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-07-05 13:56:44 -0300
committerRenato Botelho <renato@netgate.com>2017-07-05 13:56:44 -0300
commit7fbb45be082e3ef6a427ed68aa63fa81e46c9883 (patch)
treed59bca5d5d6a8ef40f820c434ad00134f8c91ea5 /src/etc/rc.update_bogons.sh
parent6cc74faa449b3983daa82bd84250e8a3c0289e5e (diff)
downloadpfsense-7fbb45be082e3ef6a427ed68aa63fa81e46c9883.zip
pfsense-7fbb45be082e3ef6a427ed68aa63fa81e46c9883.tar.gz
Include User Agent information when update bogons list
Diffstat (limited to 'src/etc/rc.update_bogons.sh')
-rwxr-xr-xsrc/etc/rc.update_bogons.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/etc/rc.update_bogons.sh b/src/etc/rc.update_bogons.sh
index bcb8654..d8df393 100755
--- a/src/etc/rc.update_bogons.sh
+++ b/src/etc/rc.update_bogons.sh
@@ -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
OpenPOWER on IntegriCloud