MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / enable

Method enable

sshuttle/methods/pf.py:344–346  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

342 super(Darwin, self).__init__()
343
344 def enable(self):
345 o = pfctl('-E')
346 _pf_context['Xtoken'].append(re.search(b'Token : (.+)', o[1]).group(1))
347
348 def disable(self, anchor):
349 pfctl('-a %s -F all' % anchor)

Callers 2

enableMethod · 0.45
setup_firewallMethod · 0.45

Calls 1

pfctlFunction · 0.70

Tested by

no test coverage detected