(host: string)
| 47 | } |
| 48 | |
| 49 | function isLoopbackV4(host: string): boolean { |
| 50 | const ip = parseIPv4(host); |
| 51 | return ip !== null && ip[0] === 127; |
| 52 | } |
| 53 | |
| 54 | function stripPort(rawHost: string): string { |
| 55 | if (rawHost.startsWith("[")) { |
no test coverage detected