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

Function parseHost

apps/kimi-code/src/cli/sub/server/shared.ts:103–107  ·  view source on GitHub ↗
(raw: string | boolean | undefined)

Source from the content-addressed store, hash-verified

101}
102
103function parseHost(raw: string | boolean | undefined): string {
104 if (raw === undefined || raw === false) return DEFAULT_SERVER_HOST;
105 if (raw === true || raw === '') return DEFAULT_LAN_HOST;
106 return raw;
107}
108
109function parseIdleGraceMs(raw: string | undefined): number {
110 if (raw === undefined) return DEFAULT_IDLE_GRACE_MS;

Callers 1

parseServerOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected