0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 04:38:52 +02:00

ircd::net: Skip call to set server_name when no server_name.

This commit is contained in:
Jason Volk 2019-04-15 13:08:04 -07:00
parent fde3e48fbf
commit 9b9f44d863

View file

@ -2532,7 +2532,7 @@ ircd::net::socket::handshake(const open_opts &opts,
set_timeout(opts.handshake_timeout);
if(opts.send_sni)
if(opts.send_sni && server_name(opts))
openssl::server_name(*this, server_name(opts));
ssl.set_verify_callback(std::move(verify_handler));