Reviewed-by: Adolf Belka adolf.belka@ipfire.org
On 03/02/2022 12:16, Stefan Schantl wrote:
Signed-off-by: Stefan Schantl stefan.schantl@ipfire.org
src/pakfire/lib/functions.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/pakfire/lib/functions.pl b/src/pakfire/lib/functions.pl index 2f34763d5..37b930080 100644 --- a/src/pakfire/lib/functions.pl +++ b/src/pakfire/lib/functions.pl @@ -155,7 +155,14 @@ sub fetchfile { logger("DOWNLOAD INFO: Host: $host ($proto) - File: $file");
my $ua = LWP::UserAgent->new;
# Init LWP::UserAgent, request SSL hostname verification
# and specify CA file.
my $ua = LWP::UserAgent->new(
ssl_opts => {
SSL_ca_file => '/etc/ssl/cert.pem',
verify_hostname => 1,
}
$ua->agent("Pakfire/$Conf::version"); $ua->timeout(20););