MCPcopy
hub / github.com/panva/node-oidc-provider / isSpecialUseIP

Function isSpecialUseIP

lib/helpers/fetch_request.js:173–177  ·  view source on GitHub ↗
(address)

Source from the content-addressed store, hash-verified

171}
172
173function isSpecialUseIP(address) {
174 // socket.remoteAddress is always a valid IP; colons only appear in IPv6
175 if (!address.includes(':')) return isSpecialUseIPv4(address);
176 return isSpecialUseIPv6(address);
177}
178
179// Returns the Agent constructor from the global dispatcher symbols that
180// node's built-in undici sets.

Callers 2

destroySpecialUseSocketFunction · 0.85

Calls 2

isSpecialUseIPv4Function · 0.85
isSpecialUseIPv6Function · 0.85

Tested by

no test coverage detected