mdns-js / node-mdns-js

Pure JavaScript/NodeJS mDNS discovery implementation.
Apache License 2.0
161 stars 60 forks source link

Fixed to exclude internal addresses when advertising services #44

Closed mycoboco closed 9 years ago

mycoboco commented 9 years ago

Internal addresses are not excluded when advertising services, which prevents, say, iTunes from properly working; it tries to connect to 127.0.0.1 even when running on a different machine.

This PR fixes the problem by skipping internal addresses when building AN packets.