]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/urlfilter/autoupdate.pl
url-filter: Use upstream proxy when downloading blacklists
[ipfire-2.x.git] / config / urlfilter / autoupdate.pl
index fa6ec91dd0473d696a6134e8e80ce7968a5470c8..39b9b4f0b572f9fb0c6e1a68f851e86101d9cc69 100644 (file)
@@ -8,6 +8,8 @@
 #
 use strict;
 
+require "/var/ipfire/general-functions.pl";
+
 my $make_clean = 1;
 
 my $swroot = "/var/ipfire";
@@ -72,6 +74,7 @@ unless ($blacklist_url eq '')
        if (-d $target) { system("rm -rf $target"); }
        system("mkdir $target");
 
+       &Network::setup_upstream_proxy();
        system("/usr/bin/wget -o $target/wget.log -O $blacklist $blacklist_url");
 
        if (-e $blacklist)