]> git.mxchange.org Git - flightgear.git/commitdiff
use http_proxy environment variable
authorTorsten Dreyer <Torsten@t3r.de>
Sun, 20 Feb 2011 10:42:21 +0000 (11:42 +0100)
committerTorsten Dreyer <Torsten@t3r.de>
Sun, 20 Feb 2011 10:42:21 +0000 (11:42 +0100)
src/Main/options.cxx

index 78471c8f015e52d719c88e2e9fb1dfa610f5f10c..bce7fdeb9c00180ee682fc4485dda7ae6322f5e8 100644 (file)
@@ -98,6 +98,8 @@ atoi( const string& str )
     return ::atoi( str.c_str() );
 }
 
+static int fgSetupProxy( const char *arg );
+
 /**
  * Set a few fail-safe default property values.
  *
@@ -245,6 +247,8 @@ fgSetDefaults ()
     fgSetString("/sim/version/revision", REVISION);
     fgSetInt("/sim/version/build-number", HUDSON_BUILD_NUMBER);
     fgSetString("/sim/version/build-id", HUDSON_BUILD_ID);
+    if( (envp = ::getenv( "http_proxy" )) != NULL )
+      fgSetupProxy( envp );
 }
 
 static bool