Skip to content

Commit 28aaa65

Browse files
committed
Add SNI support
1 parent ac5aebb commit 28aaa65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/network-openssl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,10 @@ static GIOChannel *irssi_ssl_get_iochannel(GIOChannel *handle, int port, SERVER_
531531
return NULL;
532532
}
533533

534+
#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
535+
SSL_set_tlsext_host_name(ssl, server->connrec->address);
536+
#endif
537+
534538
SSL_set_mode(ssl, SSL_MODE_ENABLE_PARTIAL_WRITE |
535539
SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
536540

0 commit comments

Comments
 (0)