From: Remi Gacogne Date: Wed, 15 Sep 2021 13:33:29 +0000 (+0200) Subject: dnsdist: Document DNSQuestion:getProtocol() X-Git-Tag: dnsdist-1.7.0-alpha1~16^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10728%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Document DNSQuestion:getProtocol() --- 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