fix matching ips and httpolyglot

This commit is contained in:
AJ ONeal 2016-10-06 22:28:05 -06:00
parent f3fb34236b
commit a33084d816
1 changed files with 2 additions and 1 deletions

View File

@ -81,6 +81,7 @@ function createServer(port, pubdir, content, opts) {
if ('false' !== opts.insecurePort && httpPort !== opts.insecurePort) { if ('false' !== opts.insecurePort && httpPort !== opts.insecurePort) {
return createInsecureServer(opts.insecurePort, pubdir, opts).then(resolve); return createInsecureServer(opts.insecurePort, pubdir, opts).then(resolve);
} else { } else {
opts.insecurePort = opts.port;
resolve(); resolve();
} }
}); });
@ -270,8 +271,8 @@ function run() {
if (!matchingIps.length) { if (!matchingIps.length) {
console.log("Neither the attached nor external interfaces match '" + argv.servername + "'"); console.log("Neither the attached nor external interfaces match '" + argv.servername + "'");
} }
opts.matchingIps = matchingIps || [];
} }
opts.matchingIps = matchingIps || [];
if (opts.matchingIps.length) { if (opts.matchingIps.length) {
console.info(''); console.info('');