mirror of
https://github.com/firehol/firehol.git
synced 2024-06-28 09:52:19 +00:00
default user-agent shows operating system (fixes greensnow)
This commit is contained in:
parent
b4868397b0
commit
7d5f32c015
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Version
|
# Version
|
||||||
# $Id$
|
# $Id: 3468803a2dcaa0fd6de525779bdcb1ee87d4eb9e $
|
||||||
#
|
#
|
||||||
# FireHOL - A firewall for humans...
|
# FireHOL - A firewall for humans...
|
||||||
#
|
#
|
||||||
|
@ -1029,7 +1029,7 @@ geturl() {
|
|||||||
downloader_log verbose "curl ${doptions} '${url}'"
|
downloader_log verbose "curl ${doptions} '${url}'"
|
||||||
http_code=$( \
|
http_code=$( \
|
||||||
$CURL_CMD --connect-timeout ${MAX_CONNECT_TIME} --max-time ${MAX_DOWNLOAD_TIME} \
|
$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 \
|
--time-cond "${reference}" --output "${file}" --remote-time \
|
||||||
--location --referer "http://iplists.firehol.org/" \
|
--location --referer "http://iplists.firehol.org/" \
|
||||||
${curl_opts} --write-out '%{http_code}' "${doptions[@]}" "${url}" \
|
${curl_opts} --write-out '%{http_code}' "${doptions[@]}" "${url}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user