From: Michael Tremer Date: Wed, 28 Mar 2018 15:55:18 +0000 (+0100) Subject: pakfire: Use upstream proxy for HTTPS, too X-Git-Tag: v2.19-core120~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b072d640efde44017aeceb66d816ea59639be46;p=ipfire-2.x.git pakfire: Use upstream proxy for HTTPS, too Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/lib/functions.pl b/src/pakfire/lib/functions.pl index 6cc1771285..78761aef62 100644 --- a/src/pakfire/lib/functions.pl +++ b/src/pakfire/lib/functions.pl @@ -166,10 +166,10 @@ sub fetchfile { if ($proxysettings{'UPSTREAM_PROXY'}) { logger("DOWNLOAD INFO: Upstream proxy: \"$proxysettings{'UPSTREAM_PROXY'}\"") unless ($bfile =~ /^counter.py\?.*/); if ($proxysettings{'UPSTREAM_USER'}) { - $ua->proxy("http","http://$proxysettings{'UPSTREAM_USER'}:$proxysettings{'UPSTREAM_PASSWORD'}@"."$proxysettings{'UPSTREAM_PROXY'}/"); + $ua->proxy([["http", "https"] => "http://$proxysettings{'UPSTREAM_USER'}:$proxysettings{'UPSTREAM_PASSWORD'}@"."$proxysettings{'UPSTREAM_PROXY'}/"]); logger("DOWNLOAD INFO: Logging in with: \"$proxysettings{'UPSTREAM_USER'}\" - \"$proxysettings{'UPSTREAM_PASSWORD'}\"") unless ($bfile =~ /^counter.py\?.*/); } else { - $ua->proxy("http","http://$proxysettings{'UPSTREAM_PROXY'}/"); + $ua->proxy([["http", "https"] => "http://$proxysettings{'UPSTREAM_PROXY'}/"]); } }