mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Oops... we tried running without a destination
git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@223 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
parent
632919f59c
commit
486344f982
1 changed files with 2 additions and 2 deletions
|
|
@ -465,7 +465,7 @@ int cmdline_parser( int argc, char * const *argv, struct gengetopt_args_info *ar
|
|||
char * temp;
|
||||
temp = malloc( 56+1 );
|
||||
r = sscanf( tmp, "http://%56[^/]/", temp );
|
||||
message( "r = '%d'\ntemp = '%s'\n", r, temp);
|
||||
// message( "r = '%d'\ntemp = '%s'\n", r, temp);
|
||||
|
||||
args_info->proxy_given = 1;
|
||||
args_info->proxy_arg = gengetopt_strdup (temp);
|
||||
|
|
@ -474,7 +474,7 @@ int cmdline_parser( int argc, char * const *argv, struct gengetopt_args_info *ar
|
|||
}
|
||||
}
|
||||
|
||||
if (! args_info->proxy_given && ! args_info->dest_given ) {
|
||||
if (! args_info->proxy_given || ! args_info->dest_given ) {
|
||||
clear_args ();
|
||||
// cmdline_parser_print_help ();
|
||||
message( "No proxy or destination given, exiting\nUse '--help' flag for usage info\n" );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue