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

Function resolveHost

apps/vis/server/src/config.ts:26–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25/** HTTP host for the vis API server. Defaults to loopback. */
26export function resolveHost(): string {
27 const raw = process.env['VIS_HOST'] ?? process.env['HOST'];
28 const host = raw?.trim();
29 return host !== undefined && host.length > 0 ? host : '127.0.0.1';
30}
31
32export function isLoopbackHost(host: string): boolean {
33 const normalized = host.trim().toLowerCase().replaceAll('[', '').replaceAll(']', '');

Callers 3

mainFunction · 0.90
startVisServerFunction · 0.90
resolveVisAuthTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected