Skip to content

Commit

Permalink
Set TLS Server Name Indication for secure connections (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
Futaura authored Mar 14, 2024
1 parent 298b9c4 commit 91d5f42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tcp/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,8 @@ BOOL MakeSecureConnection(struct Connection *conn)
BOOL errorState = FALSE;
int res;

SSL_set_tlsext_host_name(conn->ssl, conn->server->hostname);

// 5) establish the ssl connection and take care of non-blocking IO
D(DBF_NET, "connect SSL context %08lx", conn->ssl);
STARTCLOCK(DBF_NET);
Expand Down

0 comments on commit 91d5f42

Please sign in to comment.