Add URL encoded versions of the DNSBL/network to the dnsbl module.

This commit is contained in:
Sadie Powell 2024-07-11 12:50:31 +01:00
parent f49ed93cd9
commit 0f3d949bbd
2 changed files with 7 additions and 5 deletions

View File

@ -8,4 +8,4 @@
records="3,5,6,7,8,9,10,11,13,14,15,16,17,19"
action="zline"
duration="7d"
reason="You are listed in DroneBL. Please visit https://dronebl.org/lookup.do?ip=%ip%&network=%network% for more information.">
reason="You are listed in DroneBL. Please visit https://dronebl.org/lookup.do?ip=%ip%&network=%network.url% for more information.">

View File

@ -367,8 +367,10 @@ public:
{
const std::string reason = Template::Replace(config->reason, {
{ "dnsbl", config->name },
{ "dnsbl.url", Percent::Encode(config->name) },
{ "ip", them->GetAddress() },
{ "network", ServerInstance->Config->Network },
{ "network.url", Percent::Encode(ServerInstance->Config->Network) },
{ "result", ConvToStr(result) },
});