mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
ircd::net: Skip call to set server_name when no server_name.
This commit is contained in:
parent
fde3e48fbf
commit
9b9f44d863
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue