conn_waitpong: optionally require a PONG cookie before registration (anti-bot)
This commit is contained in:
parent
e0d849b4c9
commit
61954f6c5c
7 changed files with 70 additions and 2 deletions
|
|
@ -384,6 +384,7 @@ impl Ircd {
|
|||
&& !u.ident.is_empty()
|
||||
&& !u.cap
|
||||
&& !u.dns_pending
|
||||
&& u.waitpong.is_none()
|
||||
})
|
||||
.unwrap_or(false);
|
||||
if ready {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue