diff options
author | Sadie Powell <sadie@witchery.services> | 2020-03-09 04:34:11 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-03-09 04:41:29 +0000 |
commit | 32abc31869290e22292e0b051c4fafc0bb36f43f (patch) | |
tree | ab25a943aabe49ffcbb9aeccc239f578c8bc15ad /src | |
parent | 5960cbcde3ad216b4e69ab3ded57568b738333c0 (diff) |
Fix <connect:requiressl> being case sensitive.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_sslinfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 1b63b89cf..f0bfbb424 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -314,7 +314,8 @@ class ModuleSSLInfo { ssl_cert* cert = cmd.sslapi.GetCertificate(user); bool ok = true; - if (myclass->config->getString("requiressl") == "trusted") + const std::string requiressl = myclass->config->getString("requiressl"); + if (stdalgo::string::equalsci(requiressl, "trusted")) { ok = (cert && cert->IsCAVerified()); ServerInstance->Logs->Log("CONNECTCLASS", LOG_DEBUG, "Class requires a trusted SSL cert. Client %s one.", (ok ? "has" : "does not have")); |