Skip to content

Commit

Permalink
Fix dns options to properly combine objects
Browse files Browse the repository at this point in the history
  • Loading branch information
ADumaine committed Dec 22, 2018
1 parent b49522c commit b5f6cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipv6-dns-workaround.js
Expand Up @@ -3,5 +3,5 @@ const dns = require('dns');
const { lookup } = dns;
dns.lookup = (name, opts, cb) => {
if (typeof cb !== 'function') return lookup(name, { verbatim: true, family: 6 }, opts);
return lookup(name, Object.assign({ verbatim: true, family: 6 }, opts), cb);
return lookup(name, Object.assign(opts, { verbatim: true, family: 6 }), cb);
};

0 comments on commit b5f6cc7

Please sign in to comment.