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

Method disable

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

Source from the content-addressed store, hash-verified

187 _pf_context['loaded_by_sshuttle'] = True
188
189 def disable(self, anchor):
190 super(FreeBsd, self).disable(anchor)
191 if _pf_context['loaded_by_sshuttle'] and \
192 _pf_context['started_by_sshuttle'] == 0:
193 ssubprocess.call(['kldunload', 'pf'], env=get_env())
194 # No env: No output.
195
196 def add_anchors(self, anchor):
197 status = pfctl('-s all')[0]

Callers

nothing calls this directly

Calls 2

get_envFunction · 0.90
disableMethod · 0.45

Tested by

no test coverage detected