From: Stefan Schantl Date: Fri, 14 Apr 2023 16:16:44 +0000 (+0200) Subject: ipblocklist.cgi: Adjust code to work with latest ipblocklist-functions.pl X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7865009cd3f86d717b26245847360046bf8e8cb3;p=people%2Fstevee%2Fipfire-2.x.git ipblocklist.cgi: Adjust code to work with latest ipblocklist-functions.pl changes Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ipblocklist.cgi b/html/cgi-bin/ipblocklist.cgi index b79eb155fe..907659f7e7 100644 --- a/html/cgi-bin/ipblocklist.cgi +++ b/html/cgi-bin/ipblocklist.cgi @@ -86,10 +86,10 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'save'}") { next if($cgiparams{$blocklist} ne "on"); # Get the file name which keeps the converted blocklist. - my $ipset_db_file = &IPblocklist::get_ipset_db_file($blocklist); + my $cached_file = &IPblocklist::get_cached_blocklist_file($blocklist); # Check if the blocklist already has been downloaded. - if(-f "$ipset_db_file") { + if(-f "$cached_file") { # Blocklist already exits, we can skip it. next; } else { @@ -107,7 +107,7 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'save'}") { # Loop over the array of missing blocklists. foreach my $missing_blocklist (@missing_blocklists) { # Call the download and convert function to get the missing blocklist. - my $status = &IPblocklist::download_and_create_blocklist($missing_blocklist); + my $status = &IPblocklist::download_blocklist($missing_blocklist); # Check if there was an error during download. if ($status eq "dl_error") {