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: rec-4.2.2~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8686%2Fhead;p=thirdparty%2Fpdns.git parsing `dont-throttle-names` and `dont-throttle-netmasks` as comma separated lists (cherry picked from commit 5285831402f3f3a209c16cb3bd743eea640cf894) --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index de0be62fb7..d9032cf84c 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -3845,14 +3845,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(dontThrottleNames); NetmaskGroup dontThrottleNetmasks; - stringtok(parts, ::arg()["dont-throttle-netmasks"]); + stringtok(parts, ::arg()["dont-throttle-netmasks"], " ,"); for (const auto &p : parts) { dontThrottleNetmasks.addMask(Netmask(p)); }