mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Some things I forgot
git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@40 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
parent
888dce8506
commit
faddb15d1c
2 changed files with 6 additions and 2 deletions
|
|
@ -29,11 +29,13 @@ struct gengetopt_args_info {
|
|||
char * proxyhost_arg; /* HTTPS Proxy host to connect to. */
|
||||
int proxyport_arg; /* HTTPS Proxy host portnumber to connect to. */
|
||||
char * desthost_arg; /* Destination host to built the tunnel to. */
|
||||
char * header_arg; /* Extra headers to send to HTTPS proxy */
|
||||
int destport_arg; /* Dest host portnumber to built the tunnel to. */
|
||||
int dottedquad_flag; /* Resolve hostname to dottedquad notation. */
|
||||
int verbose_flag; /* Turn on verbosity (default=off). */
|
||||
int inetd_flag; /* Turn on inetd (default=off). */
|
||||
int quiet_flag; /* Turn on quiet mode (default=off). */
|
||||
int standalone_arg; /* Turn on stdalone (-a) on port */
|
||||
|
||||
int help_given; /* Whether help was given. */
|
||||
int version_given; /* Whether version was given. */
|
||||
|
|
@ -47,7 +49,7 @@ struct gengetopt_args_info {
|
|||
int verbose_given; /* Whether verbose was given. */
|
||||
int inetd_given; /* Whether inetd was given. */
|
||||
int quiet_given; /* Whether quiet mode was given. */
|
||||
int standalone_arg; /* Turn on stdalone (-a) on port */
|
||||
int header_given; /* Whenther extra headers are given */
|
||||
} ;
|
||||
|
||||
int cmdline_parser( int argc, char * const *argv, struct gengetopt_args_info *args_info );
|
||||
|
|
|
|||
4
http.c
4
http.c
|
|
@ -113,8 +113,10 @@ void proxy_protocol()
|
|||
/*
|
||||
* Add extra header(s)
|
||||
*/
|
||||
sprintf( buf, "%s%s\r\n\r\n", buf, args_info.header_arg );
|
||||
sprintf( buf, "%s%s\r\n", buf, args_info.header_arg );
|
||||
}
|
||||
|
||||
sprintf( buf, "%s\r\n\r\n", buf );
|
||||
|
||||
if( args_info.verbose_flag )
|
||||
message( "Connect string sent to Proxy: '%s'\n", buf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue