1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-03 12:23:12 +02:00

You can now use "password" multiple times in the conf (eg in allow::password).

allow {
	mask *;
	password "secret";
	password "letmein";
}

This is always an "OR" type of match, any match means you pass.

I was actually doing this for the dual-cert stuff from previous commit,
where this can come in handy:

link irc1.example.org {
...
    password "AHMYBevUxXKU/S3pdBSjXP4zi4VOetYQQVJXoNYiBR0=" { spkifp; };
    password "jNw8P4QMg9tqjEJ4/lFikXBNHdIGSeN2B4/T322VjIo=" { spkifp; };
...
}
This commit is contained in:
Bram Matthys
2025-09-21 11:31:31 +02:00
parent 877d151da4
commit 4c6e259681
6 changed files with 78 additions and 73 deletions
+1 -1
View File
@@ -474,7 +474,7 @@ int rpc_config_run_rpc_user(ConfigFile *cf, ConfigEntry *ce, int type)
} else
if (!strcmp(cep->name, "password"))
{
e->auth = AuthBlockToAuthConfig(cep);
AuthBlockToAuthConfig(cep, &e->auth);
} else
if (!strcmp(cep->name, "rpc-class"))
{
+1 -1
View File
@@ -282,7 +282,7 @@ int vhost_config_run(ConfigFile *conf, ConfigEntry *ce, int type)
else if (!strcmp(cep->name, "login"))
safe_strdup(vhost->login, cep->value);
else if (!strcmp(cep->name, "password"))
vhost->auth = AuthBlockToAuthConfig(cep);
AuthBlockToAuthConfig(cep, &vhost->auth);
else if (!strcmp(cep->name, "match") || !strcmp(cep->name, "mask"))
{
conf_match_block(conf, cep, &vhost->match);