From eed917f062150593b746c3b2b4067a319a30d9e0 Mon Sep 17 00:00:00 2001 From: Brian May Date: Mon, 14 Dec 2015 20:59:26 +1100 Subject: [PATCH] Don't declare udp feature without recvmsg --- sshuttle/methods/tproxy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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):