From 78d5d265c71ba1ac7f9483912fc18563d96f4082 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 6 Mar 2022 15:09:18 +0100 Subject: [PATCH] ipblocklist-functions.pl: Store the local time if no last modified could be determined. Signed-off-by: Stefan Schantl --- config/cfgroot/ipblocklist-functions.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/cfgroot/ipblocklist-functions.pl b/config/cfgroot/ipblocklist-functions.pl index 284503a02b..cde81684f4 100644 --- a/config/cfgroot/ipblocklist-functions.pl +++ b/config/cfgroot/ipblocklist-functions.pl @@ -188,7 +188,11 @@ sub download_and_create_blocklist($) { } # Update the timestamp for the new or modified list. - $modified{$list} = $response->last_modified; + if($response->last_modified) { + $modified{$list} = $response->last_modified; + } else { + $modified{$list} = time(); + } # Write-back the modified timestamps. &General::writehash($modified_file, \%modified); -- 2.39.5