]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Document DNSQuestion:getProtocol() 10728/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 15 Sep 2021 13:33:29 +0000 (15:33 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 15 Sep 2021 13:33:29 +0000 (15:33 +0200)
pdns/dnsdistdist/docs/reference/dq.rst

index 76a432a1efb1d6e0971fdc456d47773b0c1bf3ef..89b04a5cedebaad2051d76d6e1b90992f630cc0d 100644 (file)
@@ -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