From c4bfa1c19e03bd62761f05bdf82123457f41997b Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 15 八月 2023 16:29:31 +0800 Subject: [PATCH] ++++++++++++++++ bug修复- --- huaxin_api/client_network.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/huaxin_api/client_network.py b/huaxin_api/client_network.py index eb89a7d..188cd33 100644 --- a/huaxin_api/client_network.py +++ b/huaxin_api/client_network.py @@ -7,6 +7,7 @@ SERVER_IP = "127.0.0.1" SERVER_PORT = 10008 + class SendResponseSkManager: __send_response_sk_dict = {} @@ -28,8 +29,7 @@ pass @classmethod - def create_send_response_sk(cls): - addr, port = SERVER_IP, SERVER_PORT + def create_send_response_sk(cls, addr=SERVER_IP, port=SERVER_PORT): client = socket.socket() # 鐢熸垚socket锛岃繛鎺erver client.connect((addr, port)) return client -- Gitblit v1.8.0