Include the network name in the DroneBL example config.

This commit is contained in:
Sadie Powell 2024-07-10 14:12:28 +01:00
parent f02704524c
commit f49ed93cd9
2 changed files with 5 additions and 4 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% for more information.">
reason="You are listed in DroneBL. Please visit https://dronebl.org/lookup.do?ip=%ip%&network=%network% for more information.">

View File

@ -366,9 +366,10 @@ public:
if (match)
{
const std::string reason = Template::Replace(config->reason, {
{ "dnsbl", config->name },
{ "ip", them->GetAddress() },
{ "result", ConvToStr(result) },
{ "dnsbl", config->name },
{ "ip", them->GetAddress() },
{ "network", ServerInstance->Config->Network },
{ "result", ConvToStr(result) },
});
config->stats_hits++;