diff options
Diffstat (limited to 'node_modules/node-libs-browser/mock/dns.js')
-rw-r--r-- | node_modules/node-libs-browser/mock/dns.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/node-libs-browser/mock/dns.js b/node_modules/node-libs-browser/mock/dns.js new file mode 100644 index 000000000..f15a0040e --- /dev/null +++ b/node_modules/node-libs-browser/mock/dns.js @@ -0,0 +1,15 @@ +exports.lookup = exports.resolve4 = +exports.resolve6 = exports.resolveCname = +exports.resolveMx = exports.resolveNs = +exports.resolveTxt = exports.resolveSrv = +exports.resolveNaptr = exports.reverse = +exports.resolve = +function () { + if (!arguments.length) return; + + var callback = arguments[arguments.length - 1]; + if (callback && typeof callback === 'function') { + callback(null, '0.0.0.0') + } +} + |