We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fde18b2 commit c64018eCopy full SHA for c64018e
lib/net.js
@@ -953,12 +953,12 @@ function lookupAndConnect(self, options) {
953
954
if (dnsopts.family !== 4 && dnsopts.family !== 6) {
955
dnsopts.hints = dns.ADDRCONFIG;
956
- // The AI_V4MAPPED hint is not supported on FreeBSD, and getaddrinfo
+ // The AI_V4MAPPED hint is not supported on FreeBSD or Android, and getaddrinfo
957
// returns EAI_BADFLAGS. However, it seems to be supported on most other
958
// systems. See
959
// http://lists.freebsd.org/pipermail/freebsd-bugs/2008-February/028260.html
960
// for more information on the lack of support for FreeBSD.
961
- if (process.platform !== 'freebsd')
+ if (process.platform !== 'freebsd' && process.platform !== 'android')
962
dnsopts.hints |= dns.V4MAPPED;
963
}
964
0 commit comments