[openssl-commits] [tools] master update

Richard Levitte levitte at openssl.org
Wed Jun 21 22:05:48 UTC 2017


The branch master has been updated
       via  e455d92da59a1b87e44b62a1c25dd0f5ca568539 (commit)
      from  0202cbb2985cfcbb3f65e20f5e38bbc11adc386d (commit)


- Log -----------------------------------------------------------------
commit e455d92da59a1b87e44b62a1c25dd0f5ca568539
Author: Richard Levitte <levitte at openssl.org>
Date:   Thu Jun 22 00:03:51 2017 +0200

    OpenSSL-Query: obey proxy settings
    
    Proxy settings is done with environment variables {scheme}_proxy.
    For our use, https_proxy is the variable of choice, for example:
    
        export https_proxy=http://pxory.my.place/

-----------------------------------------------------------------------

Summary of changes:
 OpenSSL-Query/lib/OpenSSL/Query/ClaREST.pm    | 4 +++-
 OpenSSL-Query/lib/OpenSSL/Query/PersonREST.pm | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/OpenSSL-Query/lib/OpenSSL/Query/ClaREST.pm b/OpenSSL-Query/lib/OpenSSL/Query/ClaREST.pm
index 905fa64..fb1f256 100644
--- a/OpenSSL-Query/lib/OpenSSL/Query/ClaREST.pm
+++ b/OpenSSL-Query/lib/OpenSSL/Query/ClaREST.pm
@@ -23,7 +23,9 @@ has base_url => ( is => 'ro', default => 'https://api.openssl.org' );
 has _clahandler => ( is => 'ro', builder => 1 );
 
 sub _build__clahandler {
-  return LWP::UserAgent->new( keep_alive => 1 );
+  my $ua = LWP::UserAgent->new( keep_alive => 1 );
+  $ua->env_proxy;
+  return $ua;
 }
 
 sub has_cla {
diff --git a/OpenSSL-Query/lib/OpenSSL/Query/PersonREST.pm b/OpenSSL-Query/lib/OpenSSL/Query/PersonREST.pm
index bebc10a..a98a627 100644
--- a/OpenSSL-Query/lib/OpenSSL/Query/PersonREST.pm
+++ b/OpenSSL-Query/lib/OpenSSL/Query/PersonREST.pm
@@ -23,7 +23,9 @@ has base_url => ( is => 'ro', default => 'https://api.openssl.org' );
 has _personhandler => ( is => 'lazy', builder => 1 );
 
 sub _build__personhandler {
-  return LWP::UserAgent->new( keep_alive => 1 );
+  my $ua = LWP::UserAgent->new( keep_alive => 1 );
+  $ua->env_proxy;
+  return $ua;
 }
 
 sub list_people {


More information about the openssl-commits mailing list