mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Allow multiple -H/--header options to be specified
for proxies that need multiple headers to be coaxed into tunneling git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@142 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
parent
fc807ecd28
commit
42913f3c39
4 changed files with 10 additions and 6 deletions
|
|
@ -23,6 +23,8 @@
|
|||
#ifndef _cmdline_h
|
||||
#define _cmdline_h
|
||||
|
||||
#define MAX_HEADER_SIZE 1024
|
||||
|
||||
struct gengetopt_args_info {
|
||||
char * user_arg; /* Username to send to HTTPS proxy for auth. */
|
||||
char * pass_arg; /* Password to send to HTTPS proxy for auth. */
|
||||
|
|
@ -31,7 +33,7 @@ struct gengetopt_args_info {
|
|||
char * proxyhost_arg; /* HTTPS Proxy host to connect to. */
|
||||
int proxyport_arg; /* HTTPS Proxy host portnumber to connect to. */
|
||||
char * dest_arg; /* Destination host to built the tunnel to. */
|
||||
char * header_arg; /* Extra headers to send to HTTPS proxy */
|
||||
char header_arg[MAX_HEADER_SIZE]; /* Extra headers to send to HTTPS proxy */
|
||||
char * remproxy_arg; /* Remote proxy to tunnel to. */
|
||||
int verbose_flag; /* Turn on verbosity (default=off). */
|
||||
int ntlm_flag; /* Turn on ntlm (default=off). */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue