diff options
author | Renato Botelho <renato@netgate.com> | 2017-07-05 13:56:44 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-07-05 13:56:44 -0300 |
commit | 7fbb45be082e3ef6a427ed68aa63fa81e46c9883 (patch) | |
tree | d59bca5d5d6a8ef40f820c434ad00134f8c91ea5 /src | |
parent | 6cc74faa449b3983daa82bd84250e8a3c0289e5e (diff) | |
download | pfsense-7fbb45be082e3ef6a427ed68aa63fa81e46c9883.zip pfsense-7fbb45be082e3ef6a427ed68aa63fa81e46c9883.tar.gz |
Include User Agent information when update bogons list
Diffstat (limited to 'src')
-rwxr-xr-x | src/etc/rc.update_bogons.sh | 8 |
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 |