Socket
Socket
Sign inDemoInstall

multicast-dns

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multicast-dns - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

2

index.js

@@ -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
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc