diff options
| author | 2026-04-03 23:06:38 +0100 | |
|---|---|---|
| committer | 2026-04-03 23:50:56 +0100 | |
| commit | 4f2054f9ce5aeb8c30d8364da09edd9f154116ae (patch) | |
| tree | d4babbaaf8a288e178adb1269635dc375ca9b3a5 /modules/spanningtree/server.cpp | |
| parent | Add the new TLS API. (diff) | |
Switch modules over to the new TLS API.
Diffstat (limited to 'modules/spanningtree/server.cpp')
| -rw-r--r-- | modules/spanningtree/server.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/modules/spanningtree/server.cpp b/modules/spanningtree/server.cpp index b57c7e28b..7c6c08544 100644 --- a/modules/spanningtree/server.cpp +++ b/modules/spanningtree/server.cpp @@ -26,7 +26,6 @@ #include <filesystem> #include "inspircd.h" -#include "modules/ssl.h" #include "main.h" #include "utils.h" @@ -149,14 +148,7 @@ std::shared_ptr<Link> TreeSocket::AuthRemote(const CommandBase::Params& params) if (!CheckDuplicate(sname, sid)) return nullptr; - const SSLIOHook* const ssliohook = SSLIOHook::IsSSL(this); - if (ssliohook) - { - std::string ciphersuite; - ssliohook->GetCiphersuite(ciphersuite); - ServerInstance->SNO.WriteToSnoMask('l', "Negotiated ciphersuite {} on link {}", ciphersuite, x->Name); - } - else if (!IsLocalRange(capab->remotesa)) + if (TLS::GetHook(this) && !IsLocalRange(capab->remotesa)) { this->SendError("Non-local server connections MUST be linked with SSL!"); return nullptr; |
