diff --git a/serve.js b/serve.js index 950533e..ae224fe 100755 --- a/serve.js +++ b/serve.js @@ -144,6 +144,7 @@ function createServer(port, pubdir, content, opts) { if ('false' !== opts.insecurePort && httpPort !== opts.insecurePort) { return createInsecureServer(opts.insecurePort, pubdir, opts).then(resolve); } else { + opts.insecurePort = opts.port; resolve(); } }); @@ -358,8 +359,8 @@ function run() { if (!matchingIps.length) { console.info("Neither the attached nor external interfaces match '" + argv.servername + "'"); } - opts.matchingIps = matchingIps || []; } + opts.matchingIps = matchingIps || []; if (opts.matchingIps.length) { console.info('');