mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-03 23:13:11 +02:00
Add allow::options::sasl (or require-sasl) to require SASL authentication
as suggested in https://bugs.unrealircd.org/view.php?id=5098 The allow block documentation has been updated, including an example at the end of the page - https://www.unrealircd.org/docs/Allow_block
This commit is contained in:
@@ -1712,6 +1712,8 @@ int AllowClient(aClient *cptr, struct hostent *hp, char *sockhost, char *usernam
|
||||
continue;
|
||||
if (aconf->flags.ssl && !IsSecure(cptr))
|
||||
continue;
|
||||
if (aconf->flags.sasl && (!*cptr->user->svid || isdigit(*cptr->user->svid)))
|
||||
continue;
|
||||
if (hp && hp->h_name)
|
||||
{
|
||||
hname = hp->h_name;
|
||||
|
||||
Reference in New Issue
Block a user