From a33084d8168003ccfefeeaaa4fd56dabce63f9e8 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 6 Oct 2016 22:28:05 -0600 Subject: [PATCH] fix matching ips and httpolyglot --- serve.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serve.js b/serve.js index 9d0e256..278878d 100755 --- a/serve.js +++ b/serve.js @@ -81,6 +81,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(); } }); @@ -270,8 +271,8 @@ function run() { if (!matchingIps.length) { console.log("Neither the attached nor external interfaces match '" + argv.servername + "'"); } - opts.matchingIps = matchingIps || []; } + opts.matchingIps = matchingIps || []; if (opts.matchingIps.length) { console.info('');