MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / lockConnectHost

Function lockConnectHost

apps/kimi-code/src/cli/sub/server/daemon.ts:83–86  ·  view source on GitHub ↗
(lock: LockContents)

Source from the content-addressed store, hash-verified

81}
82
83export function lockConnectHost(lock: LockContents): string {
84 const host = lock.host ?? LOCAL_SERVER_HOST;
85 return host === '0.0.0.0' ? LOCAL_SERVER_HOST : host;
86}
87
88/** True when `host:port` is currently free to bind (nothing listening). */
89function canBind(host: string, port: number): Promise<boolean> {

Callers 4

handleKillCommandFunction · 0.90
handlePsCommandFunction · 0.90
server.test.tsFile · 0.85
ensureDaemonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected