ids-functions.pl: Adjust code to deal with new LWP::UserAgent.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
Stefan Schantl
2022-02-03 12:16:12 +01:00
committed by Peter Müller
parent 2f8ff4e88e
commit 954dbdadcf

View File

@@ -281,7 +281,15 @@ sub downloadruleset ($) {
use LWP::UserAgent;
# Init the download module.
my $downloader = LWP::UserAgent->new;
#
# Request SSL hostname verification and specify path
# to the CA file.
my $downloader = LWP::UserAgent->new(
ssl_opts => {
SSL_ca_file => '/etc/ssl/cert.pem',
verify_hostname => 1,
}
);
# Set timeout to 10 seconds.
$downloader->timeout(10);