diversario / node-ssdp

node.js SSDP client/server.
MIT License
274 stars 118 forks source link

M-SEARCH is sent each adapter which has an ip? #73

Closed ChriD closed 7 years ago

ChriD commented 7 years ago

Hi,

When checking the SSDP messages when using the lib i am seeing that the M-SEARCH is done each adapter which has an IP? But the M-SEARCHES are completely the same. Why is this necessary? This will result in getting multiple responses for the same devices. Is this a Bug or is this as by design? grafik

When i am deactivating the second adapter, only one M-SEARCH is beeing created and the devices only response once, what would be ok.

diversario commented 7 years ago

Older version of this lib was using the first NIC it would find. But, that wouldn't always work because sometimes the first adapter could be one that doesn't actually have real connectivity. So, now, it uses all interfaces.

ChriD commented 7 years ago

Okay, so it is by design