From b047c903da20862783b50af73594cce1592cbbfe Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 29 Oct 2017 11:15:47 +0000 Subject: Add support to IOHook for retrieving the hostname sent via SNI. --- src/modules/m_sslinfo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules/m_sslinfo.cpp') diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 9682e92cf..5a5b40319 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -220,7 +220,10 @@ class ModuleSSLInfo : public Module, public Whois::EventListener ssl_cert* const cert = ssliohook->GetCertificate(); { - std::string text = "*** You are connected using SSL cipher '"; + std::string text = "*** You are connected to "; + if (!ssliohook->GetServerName(text)) + text.append(ServerInstance->Config->ServerName); + text.append(" using SSL cipher '"); ssliohook->GetCiphersuite(text); text.push_back('\''); if ((cert) && (!cert->GetFingerprint().empty())) -- cgit v1.3.1-10-gc9f91