From 8bfc03b2560269aebed48bff46d4105b6605f47c Mon Sep 17 00:00:00 2001 From: Brian Hill Date: Fri, 16 Mar 2018 13:32:28 -0400 Subject: [PATCH] Make --to-dns and --ns-host work well together --- sshuttle/server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sshuttle/server.py b/sshuttle/server.py index 6813728..4cb1e8b 100644 --- a/sshuttle/server.py +++ b/sshuttle/server.py @@ -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)