mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 06:23:00 +02:00
use HTTPS for downloading GeoIP database files
Signed-off-by: Peter Müller <peter.mueller@link38.eu> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
480e301442
commit
903052ddea
@@ -26,7 +26,7 @@ SCRIPT_PATH=/usr/local/bin
|
||||
DEST_PATH=/usr/share/xt_geoip
|
||||
DB_PATH=/var/lib/GeoIP
|
||||
|
||||
DL_URL=http://geolite.maxmind.com/download/geoip/database
|
||||
DL_URL=https://geolite.maxmind.com/download/geoip/database
|
||||
DL_FILE=GeoLite2-Country-CSV.zip
|
||||
|
||||
eval $(/usr/local/bin/readhash /var/ipfire/proxy/settings)
|
||||
@@ -40,7 +40,7 @@ function download() {
|
||||
# Proxy settings.
|
||||
# Check if a proxy should be used.
|
||||
if [[ $UPSTREAM_PROXY ]]; then
|
||||
PROXYSETTINGS="-e http_proxy=http://"
|
||||
PROXYSETTINGS="-e https_proxy=http://"
|
||||
|
||||
# Check if authentication against the proxy is configured.
|
||||
if [[ $UPSTREAM_USER && $UPSTREAM_PASSWORD ]]; then
|
||||
|
||||
Reference in New Issue
Block a user