mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 12:32:59 +02:00
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:
committed by
Peter Müller
parent
2f8ff4e88e
commit
954dbdadcf
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user