MCPcopy Create free account
hub / github.com/chartbrew/chartbrew / getMappedIpv4

Function getMappedIpv4

server/modules/outboundTargetPolicy.js:186–192  ·  view source on GitHub ↗
(address)

Source from the content-addressed store, hash-verified

184}
185
186function getMappedIpv4(address) {
187 if (address.startsWith("::ffff:")) {
188 const mappedIpv4 = address.replace("::ffff:", "");
189 return net.isIP(mappedIpv4) === 4 ? mappedIpv4 : null;
190 }
191 return getNat64EmbeddedIpv4(address);
192}
193
194function isPrivateOrReservedAddress(address) {
195 const mappedIpv4 = getMappedIpv4(address);

Callers 1

Calls 1

getNat64EmbeddedIpv4Function · 0.85

Tested by

no test coverage detected