namespace dnsdist::DynamicBlocks
{
- bool addOrRefreshBlock(NetmaskTree<DynBlock, AddressAndPortRange>& blocks, const struct timespec& now, const AddressAndPortRange& requestor, const std::string& reason, unsigned int duration, DNSAction::Action action, bool warning, bool beQuiet, std::shared_ptr<DynBlock::TagSettings> tagSettings)
+bool addOrRefreshBlock(NetmaskTree<DynBlock, AddressAndPortRange>& blocks, const struct timespec& now, const AddressAndPortRange& requestor, const std::string& reason, unsigned int duration, DNSAction::Action action, bool warning, bool beQuiet, std::shared_ptr<DynBlock::TagSettings> tagSettings)
{
unsigned int count = 0;
bool expired = false;
return true;
});
return true;
- case DNSAction::Action::SetTag:
- {
+ case DNSAction::Action::SetTag: {
if (!got->second.tagSettings) {
vinfolog("Skipping set tag dynamic block for query from %s because of missing options", dnsQuestion.ids.origRemote.toStringWithPort());
break;
return true;
});
return true;
- case DNSAction::Action::SetTag:
- {
+ case DNSAction::Action::SetTag: {
if (!got->tagSettings) {
vinfolog("Skipping set tag dynamic block for query from %s because of missing options", dnsQuestion.ids.origRemote.toStringWithPort());
break;