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

Actually make it possible for set::best-practices::trusted-cert-valid-hostname

to be turned off (it was seen as an unknown option). Reported by PeGaSuS.
This commit is contained in:
Bram Matthys
2025-09-10 16:29:30 +02:00
parent 76934cb815
commit 400a6080ab
+4
View File
@@ -9787,6 +9787,10 @@ int _test_set(ConfigFile *conf, ConfigEntry *ce)
{
bestpractices.trusted_cert = config_checkval(cepp->value, CFG_YESNO);
} else
if (!strcmp(cepp->name, "trusted-cert-valid-hostname"))
{
bestpractices.trusted_cert_valid_hostname = config_checkval(cepp->value, CFG_YESNO);
} else
if (!strcmp(cepp->name, "listen-nontls-port"))
{
bestpractices.listen_nontls_port = config_checkval(cepp->value, CFG_YESNO);