diff --git a/README.md b/README.md index f51fd8c..7c8a4e6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # mdns-server -Low level Multicast DNS implementation in pure javascript. +Low level Multicast DNS implementation in pure javascript. This is a fork of [Bryan Nielsen's](@bnielsen1965) version, with a small bug fix. Based on [multicast-dns](https://github.com/mafintosh/multicast-dns) by Mathias Buus. diff --git a/index.js b/index.js index 8c52daf..486e453 100644 --- a/index.js +++ b/index.js @@ -119,7 +119,7 @@ module.exports = function (options) { rinfo.interface = iface.name; mDNS.socketOnMessage(msg, rinfo); }) - .bind(MDNS_PORT, iface.address + (iface.family === 'IPv4' ? '' : '%' + iface.name)); + .bind(MDNS_PORT, iface.family === 'IPv4' ? '0.0.0.0' : `::%${iface.name}`); }); }, diff --git a/package.json b/package.json index 4a91ff3..56344fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "mdns-server", - "version": "1.0.5", + "name": "@alcalzone/mdns-server", + "version": "1.0.6", "description": "Low level Multicast DNS implementation in pure javascript.", "main": "index.js", "scripts": { @@ -8,9 +8,12 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/bnielsen1965/mdns-server.git" + "url": "git+https://github.com/AlCalzone/mdns-server.git" }, "author": "Bryan Nielsen (@bnielsen1965)", + "contributors": [ + "AlCalzone (d.griesel@gmx.net)" + ], "license": "MIT", "dependencies": { "dns-packet": "^1.1.1"