From d3a218f896b5db0208f83535b8f8a30b4dae3e53 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Tue, 12 Mar 2024 11:58:29 +0000 Subject: [PATCH] Fix https://github.com/XTLS/Xray-core/issues/3128 --- transport/internet/httpupgrade/dialer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/internet/httpupgrade/dialer.go b/transport/internet/httpupgrade/dialer.go index 2ed43ed7..6b5435b5 100644 --- a/transport/internet/httpupgrade/dialer.go +++ b/transport/internet/httpupgrade/dialer.go @@ -36,9 +36,9 @@ func dialhttpUpgrade(ctx context.Context, dest net.Destination, streamSettings * } else { conn = tls.Client(pconn, tlsConfig) } - requestURL.Scheme = "https" } else { + conn = pconn requestURL.Scheme = "http" }