diff options
| author | 2017-10-29 11:15:47 +0000 | |
|---|---|---|
| committer | 2017-10-29 11:15:47 +0000 | |
| commit | b047c903da20862783b50af73594cce1592cbbfe (patch) | |
| tree | 145ed0054d272153295b5757e5722195ba3f3ca6 /src/modules/m_sslinfo.cpp | |
| parent | Hide User#host and User#dhost and use accessors to modify them. (diff) | |
Add support to IOHook for retrieving the hostname sent via SNI.
Diffstat (limited to 'src/modules/m_sslinfo.cpp')
| -rw-r--r-- | src/modules/m_sslinfo.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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())) |
