mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Pakfire: fix upstream proxy usage
This patch ensures Pakfire will download updates via the configured upstream proxy (if any) for both HTTP and HTTPS. Fixes: #12357 Signed-off-by: Peter Müller <peter.mueller@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
1aa097a947
commit
d96d5db6e5
@@ -161,10 +161,10 @@ sub fetchfile {
|
||||
if ($proxysettings{'UPSTREAM_PROXY'}) {
|
||||
logger("DOWNLOAD INFO: Upstream proxy: \"$proxysettings{'UPSTREAM_PROXY'}\"");
|
||||
if ($proxysettings{'UPSTREAM_USER'}) {
|
||||
$ua->proxy([["http", "https"] => "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'}\"");
|
||||
} else {
|
||||
$ua->proxy([["http", "https"] => "http://$proxysettings{'UPSTREAM_PROXY'}/"]);
|
||||
$ua->proxy(["http", "https"], "http://$proxysettings{'UPSTREAM_PROXY'}/");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user