]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
makeRule defaults to match source netmask
authorReinier Schoof <reinier@skoef.nl>
Wed, 6 Jul 2016 06:57:13 +0000 (08:57 +0200)
committerReinier Schoof <reinier@skoef.nl>
Wed, 6 Jul 2016 06:57:13 +0000 (08:57 +0200)
pdns/dnsdist-lua.cc

index ca39e25ab4b0809ba0400a6cbd4bfe61a1c22866..b91d65f735fb4ac82ca18512f98dfb5cc5e5629c 100644 (file)
@@ -70,7 +70,7 @@ std::shared_ptr<DNSRule> makeRule(const luadnsrule_t& var)
   if(nmg.empty())
     return std::make_shared<SuffixMatchNodeRule>(smn);
   else
-    return std::make_shared<NetmaskGroupRule>(nmg);
+    return std::make_shared<NetmaskGroupRule>(nmg, true);
 }
 
 std::unordered_map<int, vector<boost::variant<string,double>>> getGenResponses(unsigned int top, boost::optional<int> labels, std::function<bool(const Rings::Response&)> pred)