mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
Opt: Refactor deploy config
This commit is contained in:
4
gui.py
4
gui.py
@@ -25,8 +25,8 @@ def func(ev: threading.Event):
|
||||
)
|
||||
args, _ = parser.parse_known_args()
|
||||
|
||||
host = args.host or State.webui_config.WebuiHost or "0.0.0.0"
|
||||
port = args.port or int(State.webui_config.WebuiPort) or 22267
|
||||
host = args.host or State.deploy_config.WebuiHost or "0.0.0.0"
|
||||
port = args.port or int(State.deploy_config.WebuiPort) or 22267
|
||||
|
||||
uvicorn.run(app, host=host, port=port, factory=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user