|
@@ -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()
|