刘威 5 tháng trước cách đây
mục cha
commit
595519dea5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/core/callcenter/esl/client.py

+ 1 - 1
src/core/callcenter/esl/client.py

@@ -430,6 +430,6 @@ class OutboundClient:
     def start(self, HOST='0.0.0.0', PORT=8084):
         # HOST, PORT = "0.0.0.0", 8084
         # 创建一个 TCP 服务器
-        with self.CustomTCPServer((HOST, PORT), self.ESLRequestHandler, self) as server:
+        with self.CustomTCPServer(server_address=(HOST, PORT), RequestHandlerClass=self.ESLRequestHandler, client=self) as server:
             self.logger.info(f"ESL server listening on {HOST}:{PORT}")
             server.serve_forever()