MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / formatHostForUrl

Function formatHostForUrl

apps/kimi-code/src/cli/sub/server/networks.ts:82–84  ·  view source on GitHub ↗
(address: string, family: NetworkAddress['family'])

Source from the content-addressed store, hash-verified

80 * return IPv4 as-is.
81 */
82export function formatHostForUrl(address: string, family: NetworkAddress['family']): string {
83 return family === 'IPv6' ? `[${address}]` : address;
84}

Callers 3

hostOriginFunction · 0.90
accessUrlLinesFunction · 0.90
server.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected