multicast-dns
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -16,2 +16,3 @@ var packet = require('dns-packet') | ||
var me = {address: ip, port: port} | ||
var destroyed = false | ||
@@ -77,2 +78,3 @@ if (type === 'udp6' && (!ip || !opts.interface)) { | ||
bind(function (err) { | ||
if (destroyed) return cb() | ||
if (err) return cb(err) | ||
@@ -107,2 +109,4 @@ var message = packet.encode(value) | ||
if (!cb) cb = noop | ||
if (destroyed) return process.nextTick(cb) | ||
destroyed = true | ||
socket.once('close', cb) | ||
@@ -109,0 +113,0 @@ socket.close() |
{ | ||
"name": "multicast-dns", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Low level multicast-dns implementation in pure javascript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -37,6 +37,2 @@ # multicast-dns | ||
got a query packet: { type: 'query', | ||
qdcount: 1, | ||
ancount: 0, | ||
nscount: 0, | ||
arcount: 0, | ||
questions: [ { name: 'brunhilde.local', type: 'A', class: 1 } ], | ||
@@ -52,6 +48,2 @@ answers: [], | ||
got a response packet: { type: 'response', | ||
qdcount: 0, | ||
ancount: 1, | ||
nscount: 0, | ||
arcount: 2, | ||
questions: [], | ||
@@ -58,0 +50,0 @@ answers: |
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
16692
310
211