do not use dns.ADDRCONFIG for localhost
authorJérémy Lal <kapouer@melix.org>
Thu, 1 Sep 2022 16:33:49 +0000 (17:33 +0100)
committerJérémy Lal <kapouer@melix.org>
Thu, 1 Sep 2022 16:33:49 +0000 (17:33 +0100)
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 cf48edb0274cc7d7a7a5673f7d53ad89319ee5f3..8fa8a6d1366d24bd191e29634b45a6273eb84071 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
@@ -1118,13 +1119,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 16da26cb5a78d63a9d4a2defe4d91234902e5203..bea647bbfd02b27c8b1940e9416fa93fd8e9c8fc 100644 (file)
@@ -21,6 +21,10 @@ test-cli-syntax: PASS,FLAKY
 # for debian buildd i386 (but pass on porter barriere.d.o)
 test-debugger-heap-profiler: PASS,FLAKY
 
+# does not work on IPv6 only host
+test-tls-psk-client: PASS,FLAKY
+test-tls-securepair-client: PASS,FLAKY
+
 [$system==win32]
 
 [$system==linux]