MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / run_networksetup_command

Method run_networksetup_command

examples/contrib/mitmproxywrapper.py:25–28  ·  view source on GitHub ↗
(self, *arguments)

Source from the content-addressed store, hash-verified

23 self.extra_arguments = extra_arguments
24
25 def run_networksetup_command(self, *arguments):
26 return subprocess.check_output(
27 ["sudo", "networksetup"] + list(arguments)
28 ).decode()
29
30 def proxy_state_for_service(self, service):
31 state = self.run_networksetup_command("-getwebproxy", service).splitlines()

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected