From c6182a2882219969c39efb6ff2d7db0bf65dd422 Mon Sep 17 00:00:00 2001 From: Patrick Michalina Date: Thu, 5 Dec 2019 22:49:34 -0600 Subject: [PATCH] fix: http.get returns "getaddrinfo ENOTFOUND" error (#42) --- src/ipscan.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ipscan.ts b/src/ipscan.ts index 07b53bc..8beccec 100644 --- a/src/ipscan.ts +++ b/src/ipscan.ts @@ -34,6 +34,7 @@ export const ipscan = flatMap(urls => forkJoin( urls.map(url => http.post(url, { headers: { 'Content-Type': 'application/soap+xml; charset=utf-8;' }, + family: 4, // https://github.com/nodejs/node/issues/5436#issuecomment-189600282 body: '' }).pipe( map(res => res.response.statusCode === 200