mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-01-03 20:49:02 +01:00
Make --to-dns and --ns-host work well together
This commit is contained in:
parent
884bd6deb0
commit
8bfc03b256
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user