From 5d1e558c0eb92581273cbfec0b09d0c7fbcb8975 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 18 Jul 2019 17:37:33 -0700 Subject: [PATCH] ircd::net: Gracefully handle unrecognized SNI. --- ircd/net.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ircd/net.cc b/ircd/net.cc index b0c2a2c89..8ce7cdbce 100644 --- a/ircd/net.cc +++ b/ircd/net.cc @@ -2073,6 +2073,19 @@ try if(!name) return true; + //TODO: XXX + if(!m::my_host(name)) + { + log::dwarning + { + log, "%s: unrecognized SNI '%s' offered.", + loghead(*this), + name, + }; + + return false; + } + log::debug { log, "%s: offered SNI '%s'",