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

Function normalizeServeHost

packages/codex-native-api/src/cli_options.ts:98–100  ·  view source on GitHub ↗
(options: Pick<ServeCliOptions, 'host' | 'publicBind'>)

Source from the content-addressed store, hash-verified

96}
97
98export function normalizeServeHost(options: Pick<ServeCliOptions, 'host' | 'publicBind'>): string | null {
99 return options.host ?? (options.publicBind ? '0.0.0.0' : null);
100}
101
102export function isLoopbackHost(value: string | null): boolean {
103 const normalized = String(value ?? '').trim().toLowerCase();

Callers 2

buildDaemonInstallPlanFunction · 0.85
serveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected