summaryrefslogtreecommitdiffstats
path: root/perl-install/proxy.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-09-05 15:14:40 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-09-05 15:14:40 +0000
commitc21e20134660ccb5855bac3f9287d7bd9073ebf9 (patch)
treedcfa80a6ac2198f23c0a577881b2a82061903c95 /perl-install/proxy.pm
parentadf4a072edd2d09dcc8bb2422355f63cb60ff54a (diff)
downloaddrakx-backup-do-not-use-c21e20134660ccb5855bac3f9287d7bd9073ebf9.tar
drakx-backup-do-not-use-c21e20134660ccb5855bac3f9287d7bd9073ebf9.tar.gz
drakx-backup-do-not-use-c21e20134660ccb5855bac3f9287d7bd9073ebf9.tar.bz2
drakx-backup-do-not-use-c21e20134660ccb5855bac3f9287d7bd9073ebf9.tar.xz
drakx-backup-do-not-use-c21e20134660ccb5855bac3f9287d7bd9073ebf9.zip
allow http://xxx for ftp_proxy
Diffstat (limited to 'perl-install/proxy.pm')
-rw-r--r--perl-install/proxy.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/proxy.pm b/perl-install/proxy.pm
index 8a2de8f3c..b01a7b9bf 100644
--- a/perl-install/proxy.pm
+++ b/perl-install/proxy.pm
@@ -16,7 +16,7 @@ sub main {
# grab current config
foreach (cat_($config_file)) {
/http_proxy = (http:.*):(\d+)/ and ($proxy_cfg->{http_url}, $proxy_cfg->{http_port}) = ($1, $2);
- /ftp_proxy = (ftp:.*):(\d+)/ and ($proxy_cfg->{ftp_url}, $proxy_cfg->{ftp_port}) = ($1, $2);
+ /ftp_proxy = ((?:ftp|http):.*):(\d+)/ and ($proxy_cfg->{ftp_url}, $proxy_cfg->{ftp_port}) = ($1, $2);
/http_user = (.*)/ and ($proxy_cfg->{login}) = $1;
if (/http_passwd = (.*)/) {
($proxy_cfg->{passwd}) = $1;