default user-agent shows operating system (fixes greensnow)

This commit is contained in:
Costa Tsaousis 2016-07-21 02:11:26 +03:00
parent b4868397b0
commit 7d5f32c015
2 changed files with 2 additions and 2 deletions

@ -1,7 +1,7 @@
#!/bin/bash
#
# Version
# $Id$
# $Id: 3468803a2dcaa0fd6de525779bdcb1ee87d4eb9e $
#
# FireHOL - A firewall for humans...
#

@ -1029,7 +1029,7 @@ geturl() {
downloader_log verbose "curl ${doptions} '${url}'"
http_code=$( \
$CURL_CMD --connect-timeout ${MAX_CONNECT_TIME} --max-time ${MAX_DOWNLOAD_TIME} \
--retry 0 --fail --compressed --user-agent "FireHOL-Update-Ipsets/3.0" \
--retry 0 --fail --compressed --user-agent "FireHOL-Update-Ipsets/3.0 (linux-gnu)" \
--time-cond "${reference}" --output "${file}" --remote-time \
--location --referer "http://iplists.firehol.org/" \
${curl_opts} --write-out '%{http_code}' "${doptions[@]}" "${url}" \