Comparing version 1.0.8 to 1.0.9
17
index.js
@@ -39,9 +39,12 @@ var mdns = require('multicast-dns') | ||
dns.on('query', function (query) { | ||
dns.respond({ | ||
answers: [{ | ||
type: 'SRV', | ||
ttl: 5, | ||
name: name, | ||
data: {port: port, target: addr} | ||
}] | ||
query.questions.forEach(function (q) { | ||
if (q.name !== name) return | ||
dns.respond({ | ||
answers: [{ | ||
type: 'SRV', | ||
ttl: 5, | ||
name: name, | ||
data: {port: port, target: addr} | ||
}] | ||
}) | ||
}) | ||
@@ -48,0 +51,0 @@ }) |
{ | ||
"name": "airpaste", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "A 1-1 network pipe that auto discovers other peers using mdns", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4888
68