(host)
| 70 | }; |
| 71 | |
| 72 | const 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 | |
| 80 | const DEFAULT_PORTS = { |
| 81 | http: 80, |
no test coverage detected