You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
906 B

  1. Description: do not use dns.ADDRCONFIG for localhost
  2. it fails on IPv6-only systems. Setting it with libc fails on linux.
  3. https://github.com/nodejs/node/issues/33279
  4. Author: Jérémy Lal <kapouer@melix.org>
  5. Last-Update: 2020-06-11
  6. Bug-Debian: https://bugs.debian.org/962318
  7. Forwarded: https://github.com/nodejs/node/issues/33816
  8. --- a/lib/net.js
  9. +++ b/lib/net.js
  10. @@ -1,4 +1,5 @@
  11. // Copyright Joyent, Inc. and other Node contributors.
  12. +
  13. //
  14. // Permission is hereby granted, free of charge, to any person obtaining a
  15. // copy of this software and associated documentation files (the
  16. @@ -1029,13 +1030,6 @@
  17. hints: options.hints || 0
  18. };
  19. - if (!isWindows &&
  20. - dnsopts.family !== 4 &&
  21. - dnsopts.family !== 6 &&
  22. - dnsopts.hints === 0) {
  23. - dnsopts.hints = dns.ADDRCONFIG;
  24. - }
  25. -
  26. debug('connect: find host', host);
  27. debug('connect: dns options', dnsopts);
  28. self._host = host;