Make use of proxy vars if set.
authorGuenter Knauf <lists@gknw.net>
Fri, 1 Apr 2011 12:58:36 +0000 (14:58 +0200)
committerGuenter Knauf <lists@gknw.net>
Fri, 1 Apr 2011 12:58:36 +0000 (14:58 +0200)
Posted to the list by Quanah Gibson-Mount [quanah zimbra.com].

lib/mk-ca-bundle.pl

index 49cd6b5..425286d 100755 (executable)
@@ -81,6 +81,7 @@ unless ($opt_n and -e $txt) {
   print "Downloading '$txt' ...\n" if (!$opt_q);
 
   my $ua  = new LWP::UserAgent(agent => "$0/$version");
+  $ua->env_proxy();
   $resp = $ua->mirror($url, $txt);
 }