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
7a474b4e2d
commit
89f5eec5ac
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(WOLFSSL_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