mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Do basic-auth on remote proxy if username/password given
(So auth is provided to local and remove proxy) git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@178 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
parent
dfc4dbdb57
commit
b11ad35a2c
1 changed files with 7 additions and 0 deletions
7
http.c
7
http.c
|
|
@ -233,6 +233,13 @@ void proxy_protocol(PTSTREAM *pts)
|
|||
strlcat( buf, "\r\n", SIZE );
|
||||
}
|
||||
|
||||
if ( args_info.user_given && args_info.pass_given )
|
||||
{
|
||||
strlcat( buf, "Proxy-authorization: Basic ", SIZE );
|
||||
strlcat( buf, basicauth, SIZE );
|
||||
strlcat( buf, "\r\n", SIZE );
|
||||
}
|
||||
|
||||
strlcat( buf, "Proxy-Connection: Keep-Alive\r\n\r\n", SIZE );
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue