Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove dns.ADDRCONFIG from net.js
  • Loading branch information
treysis committed Mar 28, 2021
commit 618579b6e0691397233a7409dd996456035213c1
7 changes: 0 additions & 7 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -1023,13 +1023,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;
Expand Down