MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / isLoopbackHost

Function isLoopbackHost

packages/codex-native-api/src/cli_options.ts:102–105  ·  view source on GitHub ↗
(value: string | null)

Source from the content-addressed store, hash-verified

100}
101
102export function isLoopbackHost(value: string | null): boolean {
103 const normalized = String(value ?? '').trim().toLowerCase();
104 return normalized === '' || normalized === '127.0.0.1' || normalized === 'localhost' || normalized === '::1';
105}

Callers 2

buildDaemonInstallPlanFunction · 0.70
serveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected