]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
optional bool is using boost now 4116/head
authorReinier Schoof <reinier@skoef.nl>
Wed, 6 Jul 2016 08:16:05 +0000 (10:16 +0200)
committerReinier Schoof <reinier@skoef.nl>
Wed, 6 Jul 2016 08:16:05 +0000 (10:16 +0200)
pdns/dnsdist-lua.cc

index b91d65f735fb4ac82ca18512f98dfb5cc5e5629c..b36e58c4631fa9697911a58887dc46f64f66590d 100644 (file)
@@ -779,8 +779,8 @@ vector<std::function<void(void)>> setupLua(bool client, const std::string& confi
       return std::shared_ptr<DNSRule>(new SuffixMatchNodeRule(smn, quiet ? *quiet : false));
     });
 
-  g_lua.writeFunction("NetmaskGroupRule", [](const NetmaskGroup& nmg, bool src = true) {
-      return std::shared_ptr<DNSRule>(new NetmaskGroupRule(nmg, src));
+  g_lua.writeFunction("NetmaskGroupRule", [](const NetmaskGroup& nmg, boost::optional<bool> src) {
+      return std::shared_ptr<DNSRule>(new NetmaskGroupRule(nmg, src ? *src : true));
     });
 
   g_lua.writeFunction("benchRule", [](std::shared_ptr<DNSRule> rule, boost::optional<int> times_, boost::optional<string> suffix_)  {