From f2e0833c1b74a2eea69a966ae5e29ac5359114fe Mon Sep 17 00:00:00 2001 From: c-jimenez <18682655+c-jimenez@users.noreply.github.com> Date: Thu, 6 Feb 2025 13:46:56 +0100 Subject: [PATCH] [libwebsockets] Use host name instead of address for proxy CONNECT request to allow TLS proxyed TLS connections --- 3rdparty/libwebsockets/lib/core-net/client/connect4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/libwebsockets/lib/core-net/client/connect4.c b/3rdparty/libwebsockets/lib/core-net/client/connect4.c index c34d2253..7c9a4f50 100644 --- a/3rdparty/libwebsockets/lib/core-net/client/connect4.c +++ b/3rdparty/libwebsockets/lib/core-net/client/connect4.c @@ -57,7 +57,7 @@ lws_client_connect_4_established(struct lws *wsi, struct lws *wsi_piggyback, if (wsi->a.vhost->http.http_proxy_port) { const char *cpa; - cpa = lws_wsi_client_stash_item(wsi, CIS_ADDRESS, + cpa = lws_wsi_client_stash_item(wsi, CIS_HOST, _WSI_TOKEN_CLIENT_PEER_ADDRESS); if (!cpa) goto failed;