]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Rename `doh` method to `https`
authorFilip Š <filip.stamcar@hotmail.com>
Tue, 29 Oct 2019 19:47:12 +0000 (20:47 +0100)
committerFilip Š <filip.stamcar@hotmail.com>
Tue, 29 Oct 2019 19:47:12 +0000 (20:47 +0100)
dns/query.py
dns/query.pyi
dns/resolver.py

index fc50466602409d64cb969bd23e7af60683d98f90..42bdd471f53c0b14c9a7912c37687e8df2c08dc6 100644 (file)
@@ -207,8 +207,8 @@ def _destination_and_source(af, where, port, source, source_port):
     return (af, destination, source)
 
 
-def doh(query, nameserver, post=True):
-    """Return the response obtained after sending a query via DoH.
+def https(query, nameserver, post=True):
+    """Return the response obtained after sending a query via DNS-over-HTTPS.
 
     *query*, a ``dns.message.Message`` containing the query to send
 
index d3d9a48ee820fc509b80b8b2824be36562a0285c..c115de990a93eae8b84f7bf91c98f7eca3b9bdf3 100644 (file)
@@ -7,7 +7,7 @@ except ImportError:
     class ssl(object):
         SSLContext = {}
 
-def doh(query : message.Message, nameserver : str, post=True) -> message.Message:
+def https(query : message.Message, nameserver : str, post=True) -> message.Message:
     pass
 
 def tcp(q : message.Message, where : str, timeout : float = None, port=53, af : Optional[int] = None, source : Optional[str] = None, source_port : Optional[int] = 0,
index 6f5320367df9b692dd456adb5c275e4c3122756a..575df4c50c9412e6c3e999fccaec63ee2060f12b 100644 (file)
@@ -909,7 +909,7 @@ class Resolver(object):
                     try:
                         if protocol == 'https':
                             tcp_attempt = True
-                            response = dns.query.doh(request, nameserver)
+                            response = dns.query.https(request, nameserver)
                         else:
                             tcp_attempt = tcp
                             if tcp: