diff options
Diffstat (limited to 'download')
-rwxr-xr-x | download | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -20,9 +20,7 @@ # ################################################################ -use Net::SSL (); BEGIN { - $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0, unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build'); } @@ -45,7 +43,10 @@ my $dir = shift @ARGV; my $ua = LWP::UserAgent->new( agent => "openSUSE build script", - timeout => 42); + timeout => 42, + ssl_opts => { + verify_hostname => 1 +}); for my $url (@ARGV) { my $original = $url; @@ -87,7 +88,7 @@ for my $url (@ARGV) { $url = URI->new($url); } } - $ua->env_proxy if $url->scheme ne 'https'; + $ua->env_proxy if $url->scheme ne 'https'; my $dest = "$dir/".basename($url->path).".tmp"; unlink($dest); # just in case my $retry = 3; |