termux-packages/packages/nodejs/lib-net.js.patch

15 lines
579 B
Diff
Raw Normal View History

2015-09-09 01:18:52 +02:00
See https://github.com/nodejs/node-v0.x-archive/issues/8540
2015-06-13 01:03:31 +02:00
2015-09-09 01:18:52 +02:00
diff -u -r ../node-v4.0.0/lib/net.js ./lib/net.js
--- ../node-v4.0.0/lib/net.js 2015-09-08 11:30:45.000000000 -0400
+++ ./lib/net.js 2015-09-08 17:37:04.293684663 -0400
@@ -951,7 +951,7 @@
// systems. See
// http://lists.freebsd.org/pipermail/freebsd-bugs/2008-February/028260.html
// for more information on the lack of support for FreeBSD.
- if (process.platform !== 'freebsd')
+ if (process.platform !== 'freebsd' && process.platform !== 'android')
dnsopts.hints |= dns.V4MAPPED;
}
2015-06-13 01:03:31 +02:00