MCPcopy
hub / github.com/CodebuffAI/codebuff / isLocalhostIp

Function isLocalhostIp

web/src/server/free-mode-country.ts:105–107  ·  view source on GitHub ↗
(ip: string)

Source from the content-addressed store, hash-verified

103const LOCALHOST_IPS = new Set(['::1', '::ffff:127.0.0.1'])
104
105function isLocalhostIp(ip: string): boolean {
106 return ip.startsWith('127.') || LOCALHOST_IPS.has(ip)
107}
108
109type ResolvedCountryAccess = Omit<
110 FreeModeCountryAccess,

Callers 1

getFreeModeCountryAccessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected