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:
parent
44bdc2f94b
commit
7ffb8476c2
1 changed files with 1 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue