summaryrefslogtreecommitdiff
path: root/www/node/files/patch-lib_dns.js
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2015-02-13 17:59:04 +0000
committerSteve Wills <swills@FreeBSD.org>2015-02-13 17:59:04 +0000
commiteb82f765c026d52ed72af3807967088f4b30e5f9 (patch)
treebd70a9f09a279246acfca66d85c957fcfa1a27f3 /www/node/files/patch-lib_dns.js
parent- Update to 1.26 (diff)
www/node: fix error getaddrinfo EAI_BADFLAGS
PR: 197539 Reported by: Valery Komarov <komarov@valerka.net> Submitted by: Daniel Lin <linpct@gmail.com> (maintainer) Obtained from: https://github.com/joyent/node/issues/9204
Diffstat (limited to 'www/node/files/patch-lib_dns.js')
-rw-r--r--www/node/files/patch-lib_dns.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/www/node/files/patch-lib_dns.js b/www/node/files/patch-lib_dns.js
new file mode 100644
index 000000000000..48e287a90551
--- /dev/null
+++ b/www/node/files/patch-lib_dns.js
@@ -0,0 +1,14 @@
+--- lib/dns.js.orig 2015-02-13 23:42:28.000000000 +0800
++++ lib/dns.js 2015-02-13 23:46:39.000000000 +0800
+@@ -125,6 +125,11 @@
+ hints !== (exports.ADDRCONFIG | exports.V4MAPPED)) {
+ throw new TypeError('invalid argument: hints must use valid flags');
+ }
++ // FIXME(indutny): V4MAPPED on FreeBSD results in EAI_BADFLAGS, because
++ // the libc does not support it
++ if (process.platform === 'freebsd' && family !== 6) {
++ hints &= ~exports.V4MAPPED;
++ }
+ } else {
+ family = options >>> 0;
+ }