0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 11:18:51 +02: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)