MCPcopy
hub / github.com/fastify/fastify / lookupToIp

Function lookupToIp

test/helper.js:465–467  ·  view source on GitHub ↗
(lookup)

Source from the content-addressed store, hash-verified

463}
464
465function lookupToIp (lookup) {
466 return lookup.family === 6 ? `[${lookup.address}]` : lookup.address
467}
468
469module.exports.getLoopbackHost = async () => {
470 const lookup = await dns.lookup('localhost')

Callers 1

helper.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected