1
1
mirror of https://github.com/sshuttle/sshuttle.git synced 2025-04-22 18:28:24 +02:00

Don't declare udp feature without recvmsg

This commit is contained in:
Brian May 2015-12-14 20:59:26 +11:00
parent 74f2d9ca7e
commit eed917f062

View File

@ -105,6 +105,9 @@ 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
if recvmsg is None:
result.udp = False
else:
result.udp = True result.udp = True
return result return result