mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Fix loading REMPROXYUSER/REMPROXYPASS from the environment
This commit is contained in:
parent
a425fa20d8
commit
b7aab076d2
1 changed files with 2 additions and 2 deletions
|
|
@ -578,7 +578,7 @@ int cmdline_parser( int argc, char * const *argv, struct gengetopt_args_info *ar
|
|||
if ( args_info->remuser_arg == NULL ) {
|
||||
if ( (tmp = getenv("REMPROXYUSER")) != NULL ) {
|
||||
args_info->remuser_given = 1;
|
||||
args_info->user_arg = gengetopt_strdup (tmp);
|
||||
args_info->remuser_arg = gengetopt_strdup (tmp);
|
||||
if( args_info->verbose_flag )
|
||||
message( "Found remote user '%s' in env variable REMPROXYPASS.\n", args_info->remuser_arg);
|
||||
}
|
||||
|
|
@ -586,7 +586,7 @@ int cmdline_parser( int argc, char * const *argv, struct gengetopt_args_info *ar
|
|||
if ( args_info->rempass_arg == NULL ) {
|
||||
if ( (tmp = getenv("REMPROXYPASS")) != NULL ) {
|
||||
args_info->rempass_given = 1;
|
||||
args_info->user_arg = gengetopt_strdup (tmp);
|
||||
args_info->rempass_arg = gengetopt_strdup (tmp);
|
||||
if( args_info->verbose_flag )
|
||||
message( "Found remote password in env variable REMPROXYPASS.\n" );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue