Skip to content

Commit

Permalink
Merge pull request #13966 from dwfreed/patch-1
Browse files Browse the repository at this point in the history
rec-main: let NetmaskGroup parse dont-throttle-netmasks
  • Loading branch information
omoerbeek authored Mar 22, 2024
2 parents 79826dd + 109aebd commit 3753769
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pdns/recursordist/rec-main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1992,12 +1992,8 @@ static void initSuffixMatchNodes([[maybe_unused]] Logr::log_t log)
}
g_dontThrottleNames.setState(std::move(dontThrottleNames));

parts.clear();
NetmaskGroup dontThrottleNetmasks;
stringtok(parts, ::arg()["dont-throttle-netmasks"], " ,");
for (const auto& part : parts) {
dontThrottleNetmasks.addMask(Netmask(part));
}
dontThrottleNetmasks.toMasks(::arg()["dont-throttle-netmasks"]);
g_dontThrottleNetmasks.setState(std::move(dontThrottleNetmasks));
}

Expand Down

0 comments on commit 3753769

Please sign in to comment.