1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-05 13:59:01 -05:00

I think we don't need this workaround anymore as we try connecting both ::1 and 127.0.0.1

This commit is contained in:
Yoshiya Hinosawa 2024-11-13 14:09:03 +09:00
parent 71cc419833
commit be9946f331
No known key found for this signature in database
GPG key ID: 9017DB4559488785

View file

@ -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);
})();