mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
Pass the correct hostname when using a proxy
The proxy doesn't modify the SNI request, so we need to pass the name of the host we're trying to reach instead of the proxy we're reaching it through.
This commit is contained in:
parent
3ae1badae7
commit
3d4342ab07
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ int lws_client_socket_service(struct libwebsocket_context *context,
|
|||
if (wsi->use_ssl && !wsi->ssl) {
|
||||
#if defined(CYASSL_SNI_HOST_NAME) || defined(SSL_CTRL_SET_TLSEXT_HOSTNAME)
|
||||
const char *hostname = lws_hdr_simple_ptr(wsi,
|
||||
_WSI_TOKEN_CLIENT_PEER_ADDRESS);
|
||||
_WSI_TOKEN_CLIENT_HOST);
|
||||
#endif
|
||||
|
||||
wsi->ssl = SSL_new(context->ssl_client_ctx);
|
||||
|
|
Loading…
Add table
Reference in a new issue