MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / tor_running

Function tor_running

Scripts/Developer Base/Free Internet.py:356–364  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

354
355
356def tor_running() -> bool:
357 global TOR_PROCESS
358 if TOR_PROCESS and TOR_PROCESS.poll() is None and local_port_open("127.0.0.1", TOR_SOCKS_PORT):
359 return True
360 if local_port_open("127.0.0.1", TOR_SOCKS_PORT):
361 return True
362 if TOR_PROCESS and TOR_PROCESS.poll() is not None:
363 TOR_PROCESS = None
364 return False
365
366
367def pysocks_available() -> bool:

Callers 5

start_torFunction · 0.70
tor_fetchFunction · 0.70
browser_homeFunction · 0.70
browser_settingsFunction · 0.70
browser_openFunction · 0.70

Calls 1

local_port_openFunction · 0.70

Tested by

no test coverage detected