]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/dnsdist-lua-rules.cc
dnsdist: Implement SNIRule for DoT
[thirdparty/pdns.git] / pdns / dnsdist-lua-rules.cc
index 5fbf7643dbb19ef4e2fe312b94cee25d7538674b..b781e8c79ac5ecef92b8e0b98dc95ea2e9015cb6 100644 (file)
@@ -295,6 +295,10 @@ void setupLuaRules()
     });
 #endif
 
+  g_lua.writeFunction("SNIRule", [](const std::string& name) {
+      return std::shared_ptr<DNSRule>(new SNIRule(name));
+  });
+
   g_lua.writeFunction("SuffixMatchNodeRule", [](const SuffixMatchNode& smn, boost::optional<bool> quiet) {
       return std::shared_ptr<DNSRule>(new SuffixMatchNodeRule(smn, quiet ? *quiet : false));
     });