From 09c35f9561add96a83c6e1c56d9aa90578020445 Mon Sep 17 00:00:00 2001 From: swee Date: Thu, 2 Jan 2025 19:52:13 -0800 Subject: [PATCH] Update server.py --- server.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index e509303..d7e1f0c 100644 --- a/server.py +++ b/server.py @@ -618,4 +618,9 @@ def ssl_session(sock2): sock.shutdown(1) sock.close() print("Something went wrong...") - print(traceback.format_exc()) \ No newline at end of file + print(traceback.format_exc()) +for i in sockets: + threading.Thread(target=tcp_session, args=[i]).start() +if ssl_option: + for i in sockets_ssl: + threading.Thread(target=ssl_session, args=[i]).start() \ No newline at end of file