MCPcopy
hub / github.com/axios/axios / isLoopback

Function isLoopback

lib/helpers/shouldBypassProxy.js:72–78  ·  view source on GitHub ↗
(host)

Source from the content-addressed store, hash-verified

70};
71
72const isLoopback = (host) => {
73 if (!host) return false;
74 if (LOOPBACK_HOSTNAMES.has(host)) return true;
75 if (isIPv4Loopback(host)) return true;
76 if (isIPv6Unspecified(host)) return true;
77 return isIPv6Loopback(host);
78};
79
80const DEFAULT_PORTS = {
81 http: 80,

Callers 1

shouldBypassProxyFunction · 0.85

Calls 4

isIPv4LoopbackFunction · 0.85
isIPv6UnspecifiedFunction · 0.85
isIPv6LoopbackFunction · 0.85
hasMethod · 0.80

Tested by

no test coverage detected