Fix the tls-proxy example

This commit is contained in:
Joris Vink 2024-05-13 10:34:45 +02:00
parent 0356286486
commit 001096460d

View File

@ -64,7 +64,7 @@ client_setup(struct connection *c)
struct connection *backend;
/* Paranoia. */
name = SSL_get_servername(c->ssl, TLSEXT_NAMETYPE_host_name);
name = SSL_get_servername(c->tls, TLSEXT_NAMETYPE_host_name);
if (name == NULL) {
kore_connection_disconnect(c);
return;