1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 17:14:46 +02:00

Remove setting that never worked and refer to set::default-ipv6-clone-mask

This commit is contained in:
Bram Matthys
2026-05-03 19:32:11 +02:00
parent 3a429dbd42
commit 46e404f95f
2 changed files with 4 additions and 32 deletions
-1
View File
@@ -1806,7 +1806,6 @@ struct ConfigItem_allow {
int port; int port;
ConfigItem_class *class; ConfigItem_class *class;
ConfigFlag_allow flags; ConfigFlag_allow flags;
int ipv6_clone_mask;
}; };
struct OperClassACLPath struct OperClassACLPath
+4 -31
View File
@@ -6036,7 +6036,6 @@ int _conf_allow(ConfigFile *conf, ConfigEntry *ce)
} }
} }
allow = safe_alloc(sizeof(ConfigItem_allow)); allow = safe_alloc(sizeof(ConfigItem_allow));
allow->ipv6_clone_mask = tempiConf.default_ipv6_clone_mask;
allow->match = safe_alloc(sizeof(SecurityGroup)); allow->match = safe_alloc(sizeof(SecurityGroup));
for (cep = ce->items; cep; cep = cep->next) for (cep = ce->items; cep; cep = cep->next)
@@ -6063,15 +6062,6 @@ int _conf_allow(ConfigFile *conf, ConfigEntry *ce)
safe_strdup(allow->server, cep->value); safe_strdup(allow->server, cep->value);
else if (!strcmp(cep->name, "redirect-port")) else if (!strcmp(cep->name, "redirect-port"))
allow->port = atoi(cep->value); allow->port = atoi(cep->value);
else if (!strcmp(cep->name, "ipv6-clone-mask"))
{
/*
* If this item isn't set explicitly by the
* user, the value will temporarily be
* zero. Defaults are applied in config_run_blocks().
*/
allow->ipv6_clone_mask = atoi(cep->value);
}
else if (!strcmp(cep->name, "options")) else if (!strcmp(cep->name, "options"))
{ {
for (cepp = cep->items; cepp; cepp = cepp->next) for (cepp = cep->items; cepp; cepp = cepp->next)
@@ -6228,27 +6218,10 @@ int _test_allow(ConfigFile *conf, ConfigEntry *ce)
} }
else if (!strcmp(cep->name, "ipv6-clone-mask")) else if (!strcmp(cep->name, "ipv6-clone-mask"))
{ {
/* keep this in sync with _test_set() */ config_error("%s:%d: allow::ipv6-clone-mask has no effect. "
int ipv6mask; "Use the global set::default-ipv6-clone-mask setting instead.",
ipv6mask = atoi(cep->value); cep->file->filename, cep->line_number);
if (ipv6mask == 0) errors++;
{
config_error("%s:%d: allow::ipv6-clone-mask given a value of zero. This cannnot be correct, as it would treat all IPv6 hosts as one host.",
cep->file->filename, cep->line_number);
errors++;
}
if (ipv6mask > 128)
{
config_error("%s:%d: set::default-ipv6-clone-mask was set to %d. The maximum value is 128.",
cep->file->filename, cep->line_number,
ipv6mask);
errors++;
}
if (ipv6mask <= 32)
{
config_warn("%s:%d: allow::ipv6-clone-mask was given a very small value.",
cep->file->filename, cep->line_number);
}
} }
else if (!strcmp(cep->name, "password")) else if (!strcmp(cep->name, "password"))
{ {