summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-10-15 00:55:00 +0200
committerErmal <eri@pfsense.org>2014-10-15 00:55:00 +0200
commit664adf3845cf1df89769bb0ed5fc113048e0912e (patch)
tree5c5d4850a0689e32787093e508ebf69c574dd2d8 /etc
parente02ea742a546513eedcef1f4049a90e998951b78 (diff)
downloadpfsense-664adf3845cf1df89769bb0ed5fc113048e0912e.zip
pfsense-664adf3845cf1df89769bb0ed5fc113048e0912e.tar.gz
Ticket #3789. Put a start at using the proxyurl/proxyport from system configured settings for bogons. It still does not consider the user/pass configured
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.update_bogons.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
index d0aac9b..178d60e 100755
--- a/etc/rc.update_bogons.sh
+++ b/etc/rc.update_bogons.sh
@@ -84,6 +84,14 @@ if [ "$proc_error" != "" ]; then
exit
fi
+HTTP_PROXY=`/usr/local/bin/xmllint --xpath 'string(//pfsense/system/proxyurl)' /conf/config.xml`
+if [ "${HTTP_PROXY}" != "" ]; then
+ HTTP_PROXY_PORT=`/usr/local/bin/xmllint --xpath 'string(//pfsense/system/proxyport)' /conf/config.xml`
+ if [ "${HTTP_PROXY_PORT}" != "" ]; then
+ HTTP_PROXY="${HTTP_PROXY}:${HTTP_PROXY_PORT}"
+ fi
+ export HTTP_PROXY
+fi
BOGON_V4_CKSUM=`/usr/bin/fetch -T 30 -q -o - "${v4urlcksum}" | awk '{ print $4 }'`
ON_DISK_V4_CKSUM=`md5 /tmp/bogons | awk '{ print $4 }'`
BOGON_V6_CKSUM=`/usr/bin/fetch -T 30 -q -o - "${v6urlcksum}" | awk '{ print $4 }'`
OpenPOWER on IntegriCloud