]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
parsing `dont-throttle-names` and `dont-throttle-netmasks` as comma separated lists 8686/head
authorCosty Petrisor <costy.petrisor@gmail.com>
Thu, 9 Jan 2020 10:56:16 +0000 (10:56 +0000)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 10 Jan 2020 09:09:11 +0000 (10:09 +0100)
(cherry picked from commit 5285831402f3f3a209c16cb3bd743eea640cf894)

pdns/pdns_recursor.cc

index de0be62fb7bcf3e8ac4aafd744669dfa9f47a430..d9032cf84c6e7015762d8fa0130c5e57ceb77512 100644 (file)
@@ -3845,14 +3845,14 @@ static int serviceMain(int argc, char*argv[])
   {
     SuffixMatchNode dontThrottleNames;
     vector<string> 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));
     }