From: Jérémy Lal Date: Tue, 9 Jul 2024 15:36:33 +0000 (+0200) Subject: do not use dns.ADDRCONFIG for localhost X-Git-Tag: archive/raspbian/18.20.4+dfsg-1_deb12u1+rpi1^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c6128869d09fac555e29d8de0fa8f371725cb9c1;p=nodejs.git do not use dns.ADDRCONFIG for localhost Last-Update: 2020-06-11 Bug-Debian: https://bugs.debian.org/962318 Forwarded: https://github.com/nodejs/node/issues/33816 it fails on IPv6-only systems. Setting it with libc fails on linux. https://github.com/nodejs/node/issues/33279 Gbp-Pq: Topic deps Gbp-Pq: Name localhost-no-addrconfig.patch --- diff --git a/lib/net.js b/lib/net.js index da40ba28d..be4a43589 100644 --- a/lib/net.js +++ b/lib/net.js @@ -1,4 +1,5 @@ // Copyright Joyent, Inc. and other Node contributors. + // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the @@ -1321,13 +1322,6 @@ function lookupAndConnect(self, options) { hints: options.hints || 0, }; - if (!isWindows && - dnsopts.family !== 4 && - dnsopts.family !== 6 && - dnsopts.hints === 0) { - dnsopts.hints = dns.ADDRCONFIG; - } - debug('connect: find host', host); debug('connect: dns options', dnsopts); self._host = host; diff --git a/test/sequential/sequential.status b/test/sequential/sequential.status index 2cae4b028..01af61521 100644 --- a/test/sequential/sequential.status +++ b/test/sequential/sequential.status @@ -29,6 +29,10 @@ test-debugger-heap-profiler: PASS,FLAKY test-watch-mode: SKIP test-watch-mode-inspect: SKIP +# does not work on IPv6 only host +test-tls-psk-client: PASS,FLAKY +test-tls-securepair-client: PASS,FLAKY + [$system==win32] # https://github.com/nodejs/node/issues/47116 test-http-max-sockets: PASS, FLAKY