diff options
author | Brian May <brian@linuxpenguins.xyz> | 2015-12-14 21:00:31 +1100 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2015-12-14 21:00:31 +1100 |
commit | 6b4e36c5280f6886f413b43d76d15a5c74b897bc (patch) | |
tree | e1733f1a342a7fd3ef9e63e259b285f8f139d95c | |
parent | eed917f062150593b746c3b2b4067a319a30d9e0 (diff) |
Declare DNS support as feature
-rw-r--r-- | sshuttle/methods/__init__.py | 1 | ||||
-rw-r--r-- | sshuttle/methods/tproxy.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sshuttle/methods/__init__.py b/sshuttle/methods/__init__.py index ed1d26f..999e6b9 100644 --- a/sshuttle/methods/__init__.py +++ b/sshuttle/methods/__init__.py @@ -39,6 +39,7 @@ class BaseMethod(object): result = Features() result.ipv6 = False result.udp = False + result.dns = True return result def get_tcp_dstip(self, sock): diff --git a/sshuttle/methods/tproxy.py b/sshuttle/methods/tproxy.py index 72ba460..367b481 100644 --- a/sshuttle/methods/tproxy.py +++ b/sshuttle/methods/tproxy.py @@ -107,8 +107,10 @@ class Method(BaseMethod): result.ipv6 = True if recvmsg is None: result.udp = False + result.dns = False else: result.udp = True + result.dns = True return result def get_tcp_dstip(self, sock): |