}
});
+ luaCtx.registerFunction<std::string (std::shared_ptr<DOHFrontend>::*)()const>("getAddressAndPort", [](const std::shared_ptr<DOHFrontend>& frontend) {
+ if (frontend == nullptr) {
+ return std::string();
+ }
+ return frontend->d_local.toStringWithPort();
+ });
+
luaCtx.writeFunction("addTLSLocal", [client](const std::string& addr, boost::variant<std::string, std::shared_ptr<TLSCertKeyPair>, LuaArray<std::string>, LuaArray<std::shared_ptr<TLSCertKeyPair>>> certFiles, LuaTypeOrArrayOf<std::string> keyFiles, boost::optional<localbind_t> vars) {
if (client) {
return;
}
});
+ luaCtx.registerFunction<std::string (std::shared_ptr<TLSFrontend>::*)()const>("getAddressAndPort", [](const std::shared_ptr<TLSFrontend>& frontend) {
+ if (frontend == nullptr) {
+ return std::string();
+ }
+ return frontend->d_addr.toStringWithPort();
+ });
+
luaCtx.registerFunction<void (std::shared_ptr<TLSFrontend>::*)()>("rotateTicketsKey", [](std::shared_ptr<TLSFrontend>& frontend) {
if (frontend == nullptr) {
return;
This object represents an address and port dnsdist is listening on for DNS over HTTPS queries.
+ .. method:: DOHFrontend:getAddressAndPort() -> string
+
+ .. versionadded:: 1.7.1
+
+ Return the address and port this frontend is listening on.
+
.. method:: DOHFrontend:loadNewCertificatesAndKeys(certFile(s), keyFile(s))
.. versionadded:: 1.6.1
This object represents the configuration of a listening frontend for DNS over TLS queries. To each frontend is associated a TLSContext.
+ .. method:: TLSFrontend:getAddressAndPort() -> string
+
+ .. versionadded:: 1.7.1
+
+ Return the address and port this frontend is listening on.
+
.. method:: TLSFrontend:loadNewCertificatesAndKeys(certFile(s), keyFile(s))
Create and switch to a new TLS context using the same options than were passed to the corresponding `addTLSLocal()` directive, but loading new certificates and keys from the selected files, replacing the existing ones.