From 7634414d824d047aacfb6125b9fd4515a40b1e82 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 12 Oct 2016 18:22:43 -0600 Subject: [PATCH] cleanup to lib/ --- local-ip.js => lib/local-ip.js | 0 match-ips.js => lib/match-ips.js | 0 serve.js | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename local-ip.js => lib/local-ip.js (100%) rename match-ips.js => lib/match-ips.js (100%) diff --git a/local-ip.js b/lib/local-ip.js similarity index 100% rename from local-ip.js rename to lib/local-ip.js diff --git a/match-ips.js b/lib/match-ips.js similarity index 100% rename from match-ips.js rename to lib/match-ips.js diff --git a/serve.js b/serve.js index 1c6e082..b55f8c7 100755 --- a/serve.js +++ b/serve.js @@ -398,12 +398,12 @@ function run() { if (!(argv.servername && defaultServername !== argv.servername && !(argv.key && argv.cert))) { // ifaces - opts.ifaces = require('./local-ip.js').find(); + opts.ifaces = require('./lib/local-ip.js').find(); promise = PromiseA.resolve(); } else { console.info("Attempting to resolve external connection for '" + argv.servername + "'"); try { - promise = require('./match-ips.js').match(argv.servername, opts); + promise = require('./lib/match-ips.js').match(argv.servername, opts); } catch(e) { console.warn("Upgrade to version 2.x to use automatic certificate issuance for '" + argv.servername + "'"); promise = PromiseA.resolve();