summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian May <brian@linuxpenguins.xyz>2015-12-14 20:59:26 +1100
committerBrian May <brian@linuxpenguins.xyz>2015-12-14 20:59:26 +1100
commiteed917f062150593b746c3b2b4067a319a30d9e0 (patch)
tree55931fb4d68d224e8e20c353a41b60997d8ea569
parent74f2d9ca7e2b6a476bc082d5e1b59d3a39e1ef5f (diff)
Don't declare udp feature without recvmsg
-rw-r--r--sshuttle/methods/tproxy.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sshuttle/methods/tproxy.py b/sshuttle/methods/tproxy.py
index 1a5cf4e..72ba460 100644
--- a/sshuttle/methods/tproxy.py
+++ b/sshuttle/methods/tproxy.py
@@ -105,7 +105,10 @@ class Method(BaseMethod):
def get_supported_features(self):
result = super(Method, self).get_supported_features()
result.ipv6 = True
- result.udp = True
+ if recvmsg is None:
+ result.udp = False
+ else:
+ result.udp = True
return result
def get_tcp_dstip(self, sock):