futomi / node-dns-sd

The node-dns-sd is a Node.js module which is a pure javascript implementation of mDNS/DNS-SD (Apple Bonjour) browser and packet parser. It allows you to discover IPv4 addresses in the local network specifying a service name such as _http._tcp.local. Besides, it allows you to monitor mDNS/DNS-SD packets.
MIT License
44 stars 11 forks source link

Fix of address already in use on udp.addMembership method #5

Closed nand87 closed 4 years ago

nand87 commented 4 years ago

If an interface, due to dhcp release time, have more than a one IPv4 the addMembership method of udp fall into an error that cause an uncatchable error that restarts the node process. I fixed the error just add a try/catch state on row 423 of dns-sd.js I push the fix into another branch and do a pull request into master

futomi commented 4 years ago

Thank you so much!