do not use dns.ADDRCONFIG for localhost
authorJérémy Lal <kapouer@melix.org>
Fri, 6 Jan 2023 20:15:20 +0000 (20:15 +0000)
committerJérémy Lal <kapouer@melix.org>
Fri, 6 Jan 2023 20:15:20 +0000 (20:15 +0000)
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

lib/net.js
test/sequential/sequential.status

index 33690d02e681de656c8832bb5af71eef1d55d52d..1ba5a5b5f8c9457126a936703864ce8f384ddfe4 100644 (file)
@@ -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
@@ -1258,13 +1259,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;
index ce25255598316ee8650b0247bb852bc056928d95..d8c12fc51751b638b32091fa6e6c94e293302547 100644 (file)
@@ -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]
 
 [$system==linux]