0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 21:28:53 +02:00

ircd::net: Gracefully handle unrecognized SNI.

This commit is contained in:
Jason Volk 2019-07-18 17:37:33 -07:00
parent ceb9ca3db7
commit 5d1e558c0e

View file

@ -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'",