mirror of
https://github.com/TianyiDataScience/openclaw-control-center.git
synced 2026-08-14 08:52:27 +00:00
Merge pull request #26 from community
* feat: add configurable bind address for UI server * fix: change default bind address from 0.0.0.0 to 127.0.0.1 --------- Co-authored-by: Jonas <huoju@madmod.cn>
This commit is contained in:
+4
-2
@@ -1753,8 +1753,10 @@ export function startUiServer(port: number, toolClient: ToolClient): Server {
|
||||
}
|
||||
});
|
||||
|
||||
server.listen(port, "127.0.0.1", () => {
|
||||
console.log(`[mission-control] ui listening at http://127.0.0.1:${port}`);
|
||||
const bindAddress = process.env.UI_BIND_ADDRESS ?? "127.0.0.1";
|
||||
server.listen(port, bindAddress, () => {
|
||||
const displayUrl = bindAddress === "0.0.0.0" ? `http://<your-ip>:${port}` : `http://${bindAddress}:${port}`;
|
||||
console.log(`[mission-control] ui listening at ${displayUrl}`);
|
||||
void Promise.resolve().then(() => primeOpenClawCliInsights());
|
||||
void primeUiRenderCaches(toolClient);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user