]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
use HTTPS for downloading GeoIP database files
authorPeter Müller <peter.mueller@link38.eu>
Mon, 21 Jan 2019 20:40:50 +0000 (21:40 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Jan 2019 04:12:49 +0000 (04:12 +0000)
Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/xt_geoip_update

index b45c5b3436d693e94675ead62fc831b7a59e85e4..93884dcf5b67de12467c467b67a4af0f0cca32dd 100644 (file)
@@ -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