0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 11:18:51 +02:00

modules/m_listen: Skip client limits for localhost. #189

This commit is contained in:
Jason Volk 2023-02-23 19:42:24 -08:00
parent 7ffb8476c2
commit 99f6289922

View file

@ -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
{