From: Costy Petrisor Date: Thu, 9 Jan 2020 10:56:16 +0000 (+0000) Subject: parsing `dont-throttle-names` and `dont-throttle-netmasks` as comma separated lists X-Git-Tag: auth-4.3.0-beta1~41^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5285831402f3f3a209c16cb3bd743eea640cf894;p=thirdparty%2Fpdns.git parsing `dont-throttle-names` and `dont-throttle-netmasks` as comma separated lists --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index f5935938d2..fb7d8eb35c 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -4059,14 +4059,14 @@ static int serviceMain(int argc, char*argv[]) { SuffixMatchNode dontThrottleNames; vector parts; - stringtok(parts, ::arg()["dont-throttle-names"]); + stringtok(parts, ::arg()["dont-throttle-names"], " ,"); for (const auto &p : parts) { dontThrottleNames.add(DNSName(p)); } g_dontThrottleNames.setState(std::move(dontThrottleNames)); NetmaskGroup dontThrottleNetmasks; - stringtok(parts, ::arg()["dont-throttle-netmasks"]); + stringtok(parts, ::arg()["dont-throttle-netmasks"], " ,"); for (const auto &p : parts) { dontThrottleNetmasks.addMask(Netmask(p)); }