MCPcopy
hub / github.com/sshuttle/sshuttle / assert_features

Method assert_features

sshuttle/methods/__init__.py:86–92  ·  view source on GitHub ↗
(self, features)

Source from the content-addressed store, hash-verified

84 pass
85
86 def assert_features(self, features):
87 avail = self.get_supported_features()
88 for key in ["udp", "dns", "ipv6", "ipv4", "user"]:
89 if getattr(features, key) and not getattr(avail, key):
90 raise Fatal(
91 "Feature %s not supported with method %s." %
92 (key, self.name))
93
94 def setup_firewall(self, port, dnsport, nslist, family, subnets, udp,
95 user, group, tmark):

Callers 4

test_assert_featuresFunction · 0.80
test_assert_featuresFunction · 0.80
test_assert_featuresFunction · 0.80
mainFunction · 0.80

Calls 2

FatalClass · 0.90

Tested by 3

test_assert_featuresFunction · 0.64
test_assert_featuresFunction · 0.64
test_assert_featuresFunction · 0.64