multicast-dns
Advanced tools
Comparing version 6.2.2 to 6.2.3
@@ -96,2 +96,3 @@ var packet = require('dns-packet') | ||
res.type = 'response' | ||
res.flags = (res.flags || 0) | packet.AUTHORITATIVE_ANSWER | ||
that.send(res, rinfo, cb) | ||
@@ -98,0 +99,0 @@ } |
{ | ||
"name": "multicast-dns", | ||
"version": "6.2.2", | ||
"version": "6.2.3", | ||
"description": "Low level multicast-dns implementation in pure javascript", | ||
@@ -11,8 +11,8 @@ "main": "index.js", | ||
"dependencies": { | ||
"dns-packet": "^1.0.1", | ||
"thunky": "^0.1.0" | ||
"dns-packet": "^1.3.1", | ||
"thunky": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"standard": "^5.4.1", | ||
"tape": "^4.4.0" | ||
"standard": "^10.0.3", | ||
"tape": "^4.8.0" | ||
}, | ||
@@ -19,0 +19,0 @@ "repository": { |
17
test.js
@@ -163,3 +163,3 @@ var mdns = require('./') | ||
test('TXT record', function (dns, t) { | ||
var data = new Buffer('black box') | ||
var data = Buffer.from('black box') | ||
@@ -226,2 +226,17 @@ dns.once('query', function (packet) { | ||
}) | ||
test('Authoritive Answer bit', function (dns, t) { | ||
dns.once('query', function (packet) { | ||
dns.respond([]) | ||
}) | ||
dns.once('response', function (packet) { | ||
t.ok(packet.flag_auth, 'should be set') | ||
dns.destroy(function () { | ||
t.end() | ||
}) | ||
}) | ||
dns.query('foo', 'A') | ||
}) | ||
}) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20105
441
+ Addedthunky@1.1.0(transitive)
- Removedthunky@0.1.0(transitive)
Updateddns-packet@^1.3.1
Updatedthunky@^1.0.2