udp-discovery
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -28,2 +28,3 @@ /** | ||
var GLOBAL_EVENT_NAME = 'MessageBus'; | ||
var DEFAULT_REUSE_ADDR = true; | ||
@@ -56,3 +57,4 @@ // We use events and must inherit from events.EventEmitter | ||
options.dgramType.toLowerCase() : DEFAULT_DGRAM_TYPE; | ||
self.socket = dgram.createSocket(self.dgramType); | ||
self.reuseaddr = (options && options.reuseaddr) ? options.reuseaddr : DEFAULT_REUSE_ADDR; | ||
self.socket = dgram.createSocket({type: self.dgramType, reuseAddr: self.reuseaddr}); | ||
self.port = (options && options.port) ? options.port : DEFAULT_UDP_PORT; | ||
@@ -59,0 +61,0 @@ self.bindAddr = (options && options.bindAddr) ? options.bindAddr : |
{ | ||
"name": "udp-discovery", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "Provides zero-config discovery service using broadcast UDP.", | ||
@@ -21,3 +21,3 @@ "main": "index.js", | ||
], | ||
"author": "Edmond Meinfelder", | ||
"author": "Edmond Meinfelder, Ryan Pannell", | ||
"license": "MIT", | ||
@@ -24,0 +24,0 @@ "dependencies": { |
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
34539
679