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

Method disable

sshuttle/methods/pf.py:348–351  ·  view source on GitHub ↗
(self, anchor)

Source from the content-addressed store, hash-verified

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)
350 if _pf_context['Xtoken']:
351 pfctl('-X %s' % _pf_context['Xtoken'].pop().decode("ASCII"))
352
353 def add_anchors(self, anchor):
354 # before adding anchors and rules we must override the skip lo

Callers 2

disableMethod · 0.45
restore_firewallMethod · 0.45

Calls 1

pfctlFunction · 0.70

Tested by

no test coverage detected