mirror of
https://github.com/matrix-construct/construct
synced 2025-01-08 05:44:21 +01:00
modules/m_listen: Skip client limits for localhost. #189
This commit is contained in:
parent
7ffb8476c2
commit
99f6289922
1 changed files with 8 additions and 1 deletions
|
@ -360,7 +360,14 @@ _listener_proffer(net::listener &listener,
|
|||
return false;
|
||||
}
|
||||
|
||||
if(client::count(ipport) >= size_t(client::settings::max_client_per_peer))
|
||||
// Trapdoor for reverse-proxies
|
||||
const bool local
|
||||
{
|
||||
//TODO: lan cidr
|
||||
net::is_loop(ipport)
|
||||
};
|
||||
|
||||
if(!local && client::count(ipport) >= size_t(client::settings::max_client_per_peer))
|
||||
{
|
||||
log::dwarning
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue