Commit 8a2b6ba7 authored by Stephane Bortzmeyer's avatar Stephane Bortzmeyer
Browse files

A bit more verbosity for DoT. Addresses #12

parent 30b011b7
......@@ -139,6 +139,8 @@ class Connection:
addrinfo = socket.getaddrinfo(server, 853)
# May be loop over the results of getaddrinfo, to test all the IP addresses? See #13
self.sock = socket.socket(addrinfo[0][0], socket.SOCK_STREAM)
if self.verbose:
print("Connecting to %s ..." % str(addrinfo[0][4]))
# With typical DoT servers, we *must* use TLS 1.2 (otherwise,
# do_handshake fails with "OpenSSL.SSL.SysCallError: (-1, 'Unexpected
# EOF')" Typical HTTP servers are more lax.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment