multicast-dns
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -35,3 +35,3 @@ var packets = require('./packets') | ||
if (opts.multicast !== false) { | ||
socket.addMembership(ip) | ||
socket.addMembership(ip, opts.interface) | ||
socket.setMulticastTTL(opts.ttl || 255) | ||
@@ -38,0 +38,0 @@ socket.setMulticastLoopback(opts.loopback !== false) |
{ | ||
"name": "multicast-dns", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Low level multicast-dns implementation in pure javascript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -110,2 +110,3 @@ # multicast-dns | ||
multicast: true // use udp multicasting | ||
interface: 'en0' // explicitly specify a network interface. defaults to all | ||
port: 5353, // set the udp port | ||
@@ -112,0 +113,0 @@ ip: '224.0.0.251', // set the udp ip |
@@ -45,2 +45,3 @@ exports.toString = function(type) { | ||
case 41: return 'OPT' | ||
case 255: return 'ANY' | ||
} | ||
@@ -94,4 +95,6 @@ return 'UNKNOWN-'+type | ||
case 'OPT': return 41 | ||
case 'ANY': return 255 | ||
case '*': return 255 | ||
} | ||
return 0 | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25492
628
192