return true;
});
+ g_lua.registerFunction<std::string(DNSQuestion::*)()>("getServerNameIndication", [](const DNSQuestion& dq) {
+ return dq.sni;
+ });
+
g_lua.registerFunction<void(DNSQuestion::*)(std::string)>("sendTrap", [](const DNSQuestion& dq, boost::optional<std::string> reason) {
#ifdef HAVE_NET_SNMP
if (g_snmpAgent && g_snmpTrapsEnabled) {
:returns: A table of EDNSOptionView objects, indexed on the ECS Option code
+ .. method:: DNSQuestion:getServerNameIndication() -> string
+
+ .. versionadded:: 1.4.0
+
+ Return the TLS Server Name Indication (SNI) value sent by the client over DoT or DoH, if any
+
+ :returns: A string containing the TLS SNI value, if any
+
.. method:: DNSQuestion:getTag(key) -> string
.. versionadded:: 1.2.0