1
0
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:
Bram Matthys
2018-06-11 08:22:29 +02:00
parent 46a60ec795
commit cd6d7a2bb7
3 changed files with 9 additions and 2 deletions
+2
View File
@@ -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;