From be9946f3313342b1ea1c62ef92661d67f91826a2 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Wed, 13 Nov 2024 14:09:03 +0900 Subject: [PATCH] I think we don't need this workaround anymore as we try connecting both ::1 and 127.0.0.1 --- ext/node/polyfills/internal_binding/cares_wrap.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ext/node/polyfills/internal_binding/cares_wrap.ts b/ext/node/polyfills/internal_binding/cares_wrap.ts index 6feb7faf0d..243211a8e7 100644 --- a/ext/node/polyfills/internal_binding/cares_wrap.ts +++ b/ext/node/polyfills/internal_binding/cares_wrap.ts @@ -107,13 +107,6 @@ export function getaddrinfo( }); } - // TODO(@bartlomieju): Forces IPv4 as a workaround for Deno not - // aligning with Node on implicit binding on Windows - // REF: https://github.com/denoland/deno/issues/10762 - if (isWindows && hostname === "localhost") { - addresses = addresses.filter((address) => isIPv4(address)); - } - req.oncomplete(error, addresses); })();