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

Function isHostCheckDisabled

packages/server/src/middleware/hostnames.ts:72–74  ·  view source on GitHub ↗
(env: NodeJS.ProcessEnv = process.env)

Source from the content-addressed store, hash-verified

70
71/** True when `KIMI_CODE_DISABLE_HOST_CHECK=1` (test/controlled env only). */
72export function isHostCheckDisabled(env: NodeJS.ProcessEnv = process.env): boolean {
73 return env['KIMI_CODE_DISABLE_HOST_CHECK'] === '1';
74}
75
76/**
77 * Strip a trailing `:port` from a `Host` value and lowercase it.

Callers 2

hostnames.test.tsFile · 0.90
startServerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected