Fixed bug: added all answers to the same array
This commit is contained in:
parent
375e2e0884
commit
a1108b9129
3
main.js
3
main.js
@ -62,7 +62,8 @@ function sniffmDNSLocalPackets() {
|
||||
// 1. Listen for responses
|
||||
mdns.on('response', async function(response) {
|
||||
// console.log("got a new mDNS response.",response);
|
||||
for (let k in response.answers) {
|
||||
let all_answers = response.answers.concat(response.additionals);
|
||||
for (let k in all_answers) {
|
||||
let answer = response.answers[k];
|
||||
|
||||
// 1. Handle DEVICES for a given SERVICE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user