mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-01-21 05:19:25 +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
|
port = 53
|
||||||
family, sockaddr = self._addrinfo(peer, port)
|
family, sockaddr = self._addrinfo(peer, port)
|
||||||
else:
|
else:
|
||||||
|
_, peer = self.to_nameserver
|
||||||
|
port = 53
|
||||||
family, sockaddr = self.to_nameserver
|
family, sockaddr = self.to_nameserver
|
||||||
|
|
||||||
sock = socket.socket(family, socket.SOCK_DGRAM)
|
sock = socket.socket(family, socket.SOCK_DGRAM)
|
||||||
|
Loading…
Reference in New Issue
Block a user