external access to the API Switch

This commit is contained in:
josc146
2023-05-29 21:34:24 +08:00
parent a196ce6da8
commit 50bee24e8c
3 changed files with 7 additions and 7 deletions

View File

@@ -110,7 +110,7 @@ export const RunButton: FC<{ onClickRun?: MouseEventHandler, iconMode?: boolean
await exit(1000).catch(() => {
});
StartServer(port, commonStore.settings.host);
StartServer(port, commonStore.settings.host !== '127.0.0.1' ? '0.0.0.0' : '127.0.0.1');
setTimeout(WindowShow, 1000);
let timeoutCount = 6;