Read http_proxy before HTTP_PROXY env var

git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@246 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
Mark Janssen 2008-08-29 18:01:47 +00:00
parent 6b408ebd03
commit b7006ddbcb

View file

@ -460,7 +460,7 @@ int cmdline_parser( int argc, char * const *argv, struct gengetopt_args_info *ar
}
if ( args_info->proxy_arg == NULL ) {
if ( (tmp = getenv("HTTP_PROXY")) != NULL ) {
if ( ((tmp = getenv("http_proxy")) != NULL) || ((tmp = getenv("HTTP_PROXY")) != NULL) ) {
int r;
char * temp;
temp = malloc( 56+1 );