multiserver
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "multiserver", | ||
"description": "write a server which works over many protocols at once, or connect to the same", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"homepage": "https://github.com/dominictarr/multiserver", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -6,2 +6,6 @@ var net | ||
function isString(s) { | ||
return 'string' == typeof s | ||
} | ||
var toPull = require('stream-to-pull-stream') | ||
@@ -20,3 +24,4 @@ var scopes = require('multiserver-scopes') | ||
var port = opts.port || Math.floor(49152 + (65535 - 49152 + 1) * Math.random()) | ||
var host = opts.host || opts.scope && scopes.host(opts.scope) || 'localhost' | ||
//does this actually need to set host from the scope here? | ||
var host = opts.host || (isString(opts.scope) && scopes.host(opts.scope)) || 'localhost' | ||
var scope = opts.scope || 'device' | ||
@@ -23,0 +28,0 @@ // FIXME: does this even work anymore? |
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
218146
6518