监听所有地址

This commit is contained in:
xunbu
2025-07-13 09:33:37 +08:00
parent af566a7649
commit b1b9249450
3 changed files with 3 additions and 3 deletions

View File

@@ -497,7 +497,7 @@ def run_app(port:int|None=None):
print(f"正在启动 DocuTranslate WebUI 版本号:{__version__}")
print(f"请用浏览器访问 http://127.0.0.1:{port} (部分终端可以使用ctrl+左键点击网址打开)")
print(f"可以设置环境变量`DOCUTRANSLATE_PORT=<port>`改变默认服务端口号")
uvicorn.run(app, host="127.0.0.1", port=port, workers=1)
uvicorn.run(app, host=None, port=port, workers=1)
except Exception as e:
print(f"启动失败: {e}")