(hostname)
| 45 | } |
| 46 | |
| 47 | function createLookupError(hostname) { |
| 48 | const error = new Error(`Validated DNS resolution not available for ${hostname}.`); |
| 49 | error.code = "ENOTFOUND"; |
| 50 | error.hostname = hostname; |
| 51 | return error; |
| 52 | } |
| 53 | |
| 54 | function createPinnedLookup(expectedHostname, resolvedAddresses = []) { |
| 55 | const normalizedExpectedHostname = normalizeHostname(expectedHostname); |
no outgoing calls
no test coverage detected