mirror of
https://github.com/baoweise-bot/aimili-vpngate.git
synced 2026-09-06 16:16:53 +08:00
Improve node fetching and connection failover
This commit is contained in:
+2
-2
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user