]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Clients should pass SERVER_AUTH.
authorBrian Wellington <bwelling@xbill.org>
Mon, 30 Sep 2019 18:56:27 +0000 (11:56 -0700)
committerBrian Wellington <bwelling@xbill.org>
Mon, 30 Sep 2019 18:56:27 +0000 (11:56 -0700)
dns/query.py

index 9ed51b7fe907749f2f648b920394cebb59a64b18..8eeadbb68bf904b6ba7b195ae5adf78b1fcbc0d2 100644 (file)
@@ -568,7 +568,7 @@ def tls(q, where, timeout=None, port=853, af=None, source=None, source_port=0,
             s.bind(source)
         _connect(s, destination, expiration)
         if ssl_context is None:
-            ssl_context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
+            ssl_context = ssl.create_default_context()
         s = ssl_context.wrap_socket(s, do_handshake_on_connect=False)
         while True:
             try: