Commit d48c77a9 authored by Alexandre's avatar Alexandre
Browse files

Fix resolving address in DoT

parent 6b6cff5d
......@@ -314,7 +314,7 @@ class ConnectionDoT(Connection):
else:
addr = self.server
self.check_ip_address(addr)
addrinfo_list = socket.getaddrinfo(self.server, 853, self.family)
addrinfo_list = socket.getaddrinfo(addr, 853, self.family)
addrinfo_set = { (addrinfo[4], addrinfo[0]) for addrinfo in addrinfo_list }
signal.signal(signal.SIGALRM, timeout_connection)
connection_success = False
......
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