Make --to-dns and --ns-host work well together

This commit is contained in:
Brian Hill 2018-03-16 13:32:28 -04:00 committed by Brian May
parent 884bd6deb0
commit 8bfc03b256

View File

@ -192,6 +192,8 @@ class DnsProxy(Handler):
port = 53
family, sockaddr = self._addrinfo(peer, port)
else:
_, peer = self.to_nameserver
port = 53
family, sockaddr = self.to_nameserver
sock = socket.socket(family, socket.SOCK_DGRAM)