mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-08 02:23:12 +02:00
Disable handshake delay for users that are exempt from blacklist checking.
The handshake delay exists so results from DNSBL's can be checked before the user is fully online. Whenever someone is exempt from DNSBL checking it serves no purpose, so we mark it that the user has no handshake delay. This will speed up connecting by up to 2 seconds (by default). Also updated WebIRC example to suggest this now: https://www.unrealircd.org/docs/WebIRC_block#UnrealIRCd-side
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ void parse_client_queued(Client *client)
|
||||
return; /* we delay processing of data until identd has replied */
|
||||
|
||||
if (!IsUser(client) && !IsServer(client) && (iConf.handshake_delay > 0) &&
|
||||
(TStime() - client->local->firsttime < iConf.handshake_delay))
|
||||
!IsNoHandshakeDelay(client) && (TStime() - client->local->firsttime < iConf.handshake_delay))
|
||||
{
|
||||
return; /* we delay processing of data until set::handshake-delay is reached */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user