From 69eb06650ef1b974992fd3aaadb6e4dd9d90a48e Mon Sep 17 00:00:00 2001 From: Costy Petrisor Date: Thu, 9 Jan 2020 10:56:16 +0000 Subject: [PATCH] parsing `dont-throttle-names` and `dont-throttle-netmasks` as comma separated lists (cherry picked from commit 5285831402f3f3a209c16cb3bd743eea640cf894) --- pdns/pdns_recursor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } -- 2.47.2