05406e5aaffb "proxy config: Set https_proxy too" was ineffective
because in
d22b80bb "proxy config: Factor out http_proxy_envsettings"
the variable name $var was not substituted into the new
supposedly-more-general shell rune, which consequently lacked the
appropriate generality.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
return unless $proxy;
my @script;
foreach my $var (qw(http_proxy https_proxy)) {
- push @script, "http_proxy=$proxy", "export http_proxy";
+ push @script, "$var=$proxy", "export $var";
}
return (join '; ', @script).';';
}