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:
parent
ceb9ca3db7
commit
5d1e558c0e
1 changed files with 13 additions and 0 deletions
13
ircd/net.cc
13
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'",
|
||||
|
|
Loading…
Reference in a new issue