summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index 29ad182da..d1e3b9ff3 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -637,6 +637,18 @@ sub configureNetwork {
require network::network;
network::network::configure_network($o->{net}, $o, $o->{modules_conf});
configure_firewall($o) if !$o->{isUpgrade};
+
+ #- only a http proxy can be used by stage1
+ #- the method is http even for ftp connections through a http proxy
+ #- use this http proxy for both http and ftp connections
+ if ($o->{method} eq "http" && $ENV{PROXY}) {
+ my $proxy = "http://$ENV{PROXY}" . ($ENV{PROXYPORT} && ":$ENV{PROXYPORT}");
+ add2hash($o->{miscellaneous} ||= {}, {
+ http_proxy => $proxy,
+ ftp_proxy => $proxy,
+ });
+ network::network::proxy_configure($::o->{miscellaneous});
+ }
}
sub configure_firewall {