UNPKG

@bitkyc08/opencodex

Version:

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM with Codex CLI/App/SDK and Claude Code

6 lines (5 loc) • 299 B
/** The public listener's bind spelling, shared with ownership discovery. */ export function normalizeBindHostname(hostname: string | undefined): string { const configuredHost = hostname?.trim(); return !configuredHost || /^localhost\.?$/i.test(configuredHost) ? "127.0.0.1" : configuredHost; }