mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-04-15 14:58:29 +02:00
Don't declare udp feature without recvmsg
This commit is contained in:
parent
74f2d9ca7e
commit
eed917f062
@ -105,7 +105,10 @@ class Method(BaseMethod):
|
|||||||
def get_supported_features(self):
|
def get_supported_features(self):
|
||||||
result = super(Method, self).get_supported_features()
|
result = super(Method, self).get_supported_features()
|
||||||
result.ipv6 = True
|
result.ipv6 = True
|
||||||
result.udp = True
|
if recvmsg is None:
|
||||||
|
result.udp = False
|
||||||
|
else:
|
||||||
|
result.udp = True
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def get_tcp_dstip(self, sock):
|
def get_tcp_dstip(self, sock):
|
||||||
|
Loading…
Reference in New Issue
Block a user