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

Function isLoopbackHost

packages/codex-native-api/src/native_api_server.ts:2954–2957  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

2952}
2953
2954function isLoopbackHost(value: string): boolean {
2955 const normalized = normalizeString(value).toLowerCase();
2956 return normalized === '127.0.0.1' || normalized === 'localhost' || normalized === '::1';
2957}
2958
2959function firstNonEmptyLine(value: string): string {
2960 return normalizeString(value.split('\n').find((line) => normalizeString(line)) ?? '');

Callers 1

constructorMethod · 0.70

Calls 1

normalizeStringFunction · 0.70

Tested by

no test coverage detected