Improve node fetching and connection failover

This commit is contained in:
Aimili
2026-08-26 20:54:24 +08:00
parent fb22c57717
commit 07983511fc
11 changed files with 1610 additions and 248 deletions
+2 -2
View File
@@ -459,9 +459,9 @@ def start_proxy_server(host: str, port: int) -> None:
pass
continue
def run_client() -> None:
def run_client(client_socket: socket.socket = client, client_address: tuple[str, int] = address) -> None:
try:
proxy_client(client, address)
proxy_client(client_socket, client_address)
finally:
proxy_connection_sem.release()