mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-07-17 16:34:53 +00:00
Host header same as CONNECT arg.
This commit is contained in:
parent
b66f2fa205
commit
3ccb37473a
1 changed files with 1 additions and 1 deletions
2
http.c
2
http.c
|
|
@ -108,7 +108,7 @@ void proxy_protocol(PTSTREAM *pts) {
|
|||
} else {
|
||||
if( args_info.verbose_flag )
|
||||
message( "\nTunneling to %s (destination)\n", args_info.dest_arg );
|
||||
sprintf( buf, "CONNECT %s HTTP/1.1\r\nHost: %s\r\n", args_info.dest_arg, args_info.host_arg ? args_info.host_arg : args_info.proxyhost_arg );
|
||||
sprintf( buf, "CONNECT %s HTTP/1.1\r\nHost: %s\r\n", args_info.dest_arg, args_info.host_arg ? args_info.host_arg : args_info.dest_arg );
|
||||
}
|
||||
|
||||
if ( args_info.user_given && args_info.pass_given ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue