From 092a3571b85c7b68e7e961920074c6c9d71a2a24 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 15 Sep 2021 15:33:29 +0200 Subject: [PATCH] dnsdist: Document DNSQuestion:getProtocol() --- pdns/dnsdistdist/docs/reference/dq.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pdns/dnsdistdist/docs/reference/dq.rst b/pdns/dnsdistdist/docs/reference/dq.rst index 76a432a1ef..89b04a5ced 100644 --- a/pdns/dnsdistdist/docs/reference/dq.rst +++ b/pdns/dnsdistdist/docs/reference/dq.rst @@ -137,6 +137,21 @@ This state can be modified from the various hooks. :returns: The scheme of the DoH query, for example ``http`` or ``https`` + .. method:: DNSQuestion:getProtocol() -> string + + .. versionadded:: 1.7.0 + + Return the transport protocol this query was received over, as a string. The possible values are: + + * "Do53 UDP" + * "Do53 TCP" + * "DNSCrypt UDP" + * "DNSCrypt TCP" + * "DNS over TLS" + * "DNS over HTTPS" + + :returns: A string + .. method:: DNSQuestion:getProxyProtocolValues() -> table .. versionadded:: 1.6.0 -- 2.47.2