From e3b62b256ebe430a9d432f715fe9b0e72f9578e6 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Fri, 14 Apr 2023 18:14:43 +0200 Subject: [PATCH] ipblocklist-functions.pl: Fix return codes of the downloader Signed-off-by: Stefan Schantl --- config/cfgroot/ipblocklist-functions.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/cfgroot/ipblocklist-functions.pl b/config/cfgroot/ipblocklist-functions.pl index 31810b64e..28843c800 100644 --- a/config/cfgroot/ipblocklist-functions.pl +++ b/config/cfgroot/ipblocklist-functions.pl @@ -153,10 +153,10 @@ sub download_blocklist ($) { my $response = &General::downloader(%settings); # Abort if the response is empty - return "empty list" unless ($response); + return "empty_list" unless ($response); # Return return codes from downloader. - return "not modified" if ($response eq "not modified"); + return "not_modified" if ($response eq "not_modified"); # Convert the response into an array to allow # processing the items. @@ -166,7 +166,7 @@ sub download_blocklist ($) { my $parser = $parsers{$IPblocklist::List::sources{$list}{'parser'}}; # Return if no parser could be omited. - return "no parser" unless ($parser); + return "no_parser" unless ($parser); # Get the name of the cached blocklist. my $file = &get_cached_blocklist_file($list); -- 2.39.5