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