void parseEDNSSubnetWhitelist(const std::string& wlist)
{
vector<string> parts;
- stringtok(parts, wlist, ",;");
+ stringtok(parts, wlist, ",; ");
for(const auto& a : parts) {
try {
Netmask nm(a);
if(!::arg()["load-modules"].empty()) {
vector<string>modules;
- stringtok(modules,::arg()["load-modules"],",");
+ stringtok(modules,::arg()["load-modules"],", ");
for(vector<string>::const_iterator i=modules.begin();i!=modules.end();++i) {
bool res;
void loadRPZFiles()
{
vector<string> fnames;
- stringtok(fnames, ::arg()["rpz-files"],",");
+ stringtok(fnames, ::arg()["rpz-files"]," ,");
int count=0;
for(const auto& f : fnames) {
loadRPZFromFile(f, g_dfe, count++);
}
fnames.clear();
- stringtok(fnames, ::arg()["rpz-masters"],",");
+ stringtok(fnames, ::arg()["rpz-masters"]," ,");
for(const auto& f : fnames) {
auto s = splitField(f, ':');
const char *option_names[3]={"auth-zones", "forward-zones", "forward-zones-recurse"};
for(int n=0; n < 3 ; ++n ) {
parts.clear();
- stringtok(parts, ::arg()[option_names[n]], ",\t\n\r");
+ stringtok(parts, ::arg()[option_names[n]], " ,\t\n\r");
for(parts_t::const_iterator iter = parts.begin(); iter != parts.end(); ++iter) {
SyncRes::AuthDomain ad;
pair<string,string> headers=splitField(*iter, '=');