mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Deprecate bitmask DNSBL records.
We don't use these in any of our docs or example configs and almost everyone uses the record type. Using a bitmask is also a source of footguns because users don't really understand how bit masks actually work.
This commit is contained in:
parent
72ff58f7ed
commit
98397935cb
@ -139,13 +139,16 @@ public:
|
||||
{ "zline", Action::ZLINE },
|
||||
});
|
||||
|
||||
const std::string typestr = tag->getString("type");
|
||||
const std::string typestr = tag->getString("type", "record", 1);
|
||||
if (insp::equalsci(typestr, "bitmask"))
|
||||
{
|
||||
type = Type::BITMASK;
|
||||
|
||||
bitmask = tag->getNum<unsigned int>("bitmask", 0);
|
||||
records = 0;
|
||||
|
||||
ServerInstance->Logs.Normal(MODNAME, "<dnsbl> tag at {} specifies a bitmask. This is deprecated and will be removed in the next major version of InspIRCd, consider migrating to records instead.",
|
||||
tag->source.str());
|
||||
}
|
||||
else if (insp::equalsci(typestr, "record"))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user