mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
SNI support
add SNI support
This commit is contained in:
parent
988322682f
commit
583d6ac96e
4 changed files with 14 additions and 10 deletions
2
http.c
2
http.c
|
|
@ -109,7 +109,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.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 );
|
||||
}
|
||||
|
||||
if ( args_info.user_given && args_info.pass_given ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue