From 36cc2e65c3900c948b39fd3d81f81cc26fb44e0c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Mon, 1 Mar 2021 20:58:37 +0100 Subject: [PATCH] Check certificates when fetching files. --- file-fetcher.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file-fetcher.pl b/file-fetcher.pl index 837feb2..4f9ee32 100755 --- a/file-fetcher.pl +++ b/file-fetcher.pl @@ -241,9 +241,9 @@ sub fetch_file($$) my $all_out = ""; my $bn = basename($url); my $local = "$tmp_dir/$md5/$bn"; - my @cmd = ("wget", "-nv", "--no-iri", "--no-check-certificate", "--user-agent=$user_agent", "-O", $local, $url); + my @cmd = ("wget", "-nv", "--no-iri", "--user-agent=$user_agent", "-O", $local, $url); my $cmd_joined = join(' ', @cmd); - my @cmd2 = ("wget", "-nv", "--no-iri", "--no-check-certificate", "--user-agent=$user_agent", "--passive-ftp", "-O", $local, $url); + my @cmd2 = ("wget", "-nv", "--no-iri", "--user-agent=$user_agent", "--passive-ftp", "-O", $local, $url); my $cmd2_joined = join(' ', @cmd2); syslog("info","fetch_file($md5,$url)"); -- 2.44.0