0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01:00

ircd::net::acceptor: Simplify SNI string comparison.

This commit is contained in:
Jason Volk 2023-02-23 19:15:20 -08:00
parent 44bdc2f94b
commit 7ffb8476c2

View file

@ -967,14 +967,9 @@ try
if(!name)
return true;
const string_view accept[]
{
this->cname,
};
const bool accepts
{
std::find(begin(accept), end(accept), name) != end(accept)
name == this->cname
};
if(!accepts)