update:优化参数读取

This commit is contained in:
hrz
2025-04-15 00:44:34 +08:00
parent 6cf6b0d645
commit 11c9915a70
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class WebSocketServer:
async def start(self):
server_config = self.config["server"]
host = server_config["ip"]
port = server_config["port"]
port = int(server_config.get("port", 8000))
self.logger.bind(tag=TAG).info(
"Server is running at ws://{}:{}/xiaozhi/v1/", get_local_ip(), port