1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-06 12:53:13 +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:
Bram Matthys
2021-01-17 08:20:50 +01:00
parent cd967a6ea6
commit 3a922d6ed5
3 changed files with 12 additions and 2 deletions
+7 -1
View File
@@ -558,9 +558,15 @@ int blacklist_start_check(Client *client)
{
Blacklist *bl;
/* If the user is on 'except blacklist' then don't bother checking... */
if (find_tkl_exception(TKL_BLACKLIST, client))
{
/* If the user is exempt from DNSBL checking then:
* 1) Don't bother checking DNSBL's
* 2) Disable handshake delay for this user, since it serves no purpose.
*/
SetNoHandshakeDelay(client);
return 0;
}
if (!BLUSER(client))
{