Make use of proxy vars if set.
Posted to the list by Quanah Gibson-Mount [quanah zimbra.com].
This commit is contained in:
@@ -81,6 +81,7 @@ unless ($opt_n and -e $txt) {
|
|||||||
print "Downloading '$txt' ...\n" if (!$opt_q);
|
print "Downloading '$txt' ...\n" if (!$opt_q);
|
||||||
|
|
||||||
my $ua = new LWP::UserAgent(agent => "$0/$version");
|
my $ua = new LWP::UserAgent(agent => "$0/$version");
|
||||||
|
$ua->env_proxy();
|
||||||
$resp = $ua->mirror($url, $txt);
|
$resp = $ua->mirror($url, $txt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user