target_server.py 连接断开后尝试重新连接

This commit is contained in:
ranchuan
2024-10-09 14:22:43 +08:00
parent 7cabaa0479
commit 5d172c8b79

View File

@@ -204,13 +204,15 @@ def main():
global _remote_client
global _local_client
_remote_client = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
_remote_client.connect(("1.92.113.30",5345))
# thd = threading.Thread(target = remote_client_handler, args = (_remote_client,))
# thd.start()
# thd.join()
while True:
myprint("尝试连接代理服务器")
_remote_client = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
_remote_client.connect(("1.92.113.30",5345))
# thd = threading.Thread(target = remote_client_handler, args = (_remote_client,))
# thd.start()
# thd.join()
remote_client_handler(_remote_client)
remote_client_handler(_remote_client)