From 3ccb37473a87bceaf7d5aea1a7241e98a227aa17 Mon Sep 17 00:00:00 2001 From: Denis Chancogne Date: Mon, 2 Feb 2026 01:02:13 +0100 Subject: [PATCH] Host header same as CONNECT arg. --- http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.c b/http.c index 12e1956..51808c3 100644 --- a/http.c +++ b/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 ) {