mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
ipblocklist-functions.pl: Store the local time if no last modified could
be determined. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user