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

Method enable

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

Source from the content-addressed store, hash-verified

180 return freebsd
181
182 def enable(self):
183 returncode = ssubprocess.call(['kldload', 'pf'], env=get_env())
184 # No env: No output.
185 super(FreeBsd, self).enable()
186 if returncode == 0:
187 _pf_context['loaded_by_sshuttle'] = True
188
189 def disable(self, anchor):
190 super(FreeBsd, self).disable(anchor)

Callers

nothing calls this directly

Calls 2

get_envFunction · 0.90
enableMethod · 0.45

Tested by

no test coverage detected