Fixed IPv6 Tor-PyProxy Issue

This commit is contained in:
SimplifiedPrivacy 2026-06-29 15:08:20 -04:00
parent fe9a60563b
commit d7084cab9e

View file

@ -33,12 +33,13 @@ class TorModule:
def start_service(self, connection_observer: Optional[ConnectionObserver] = None):
print("started tor service")
Path(self.state_home).mkdir(mode=0o700, parents=True, exist_ok=True)
print("[TOR MODULE] Making sure any existing Tor Service is stopped.")
self.stop_service()
print("[TOR MODULE] Starting Tor service without IPv6")
# if connection_observer is not None:
# connection_observer.notify("tor_bootstrapping")
@ -51,6 +52,7 @@ class TorModule:
"ControlSocket": self.control_socket_path,
"PIDFile": self.process_identifier_path,
"SocksPort": "0",
"ClientUseIPv6": '0',
},
init_msg_handler=lambda contents: TorModule.__on_initialization_message(
contents, connection_observer
@ -147,7 +149,7 @@ class TorModule:
controller.set_conf("SocksPort", socks_port_numbers)
def destroy_session(self, port_number: int):
print("destroying session")
print("destroying Tor session")
try: