cleanup to lib/
This commit is contained in:
parent
cd2fda3f2b
commit
7634414d82
4
serve.js
4
serve.js
|
@ -398,12 +398,12 @@ function run() {
|
||||||
|
|
||||||
if (!(argv.servername && defaultServername !== argv.servername && !(argv.key && argv.cert))) {
|
if (!(argv.servername && defaultServername !== argv.servername && !(argv.key && argv.cert))) {
|
||||||
// ifaces
|
// ifaces
|
||||||
opts.ifaces = require('./local-ip.js').find();
|
opts.ifaces = require('./lib/local-ip.js').find();
|
||||||
promise = PromiseA.resolve();
|
promise = PromiseA.resolve();
|
||||||
} else {
|
} else {
|
||||||
console.info("Attempting to resolve external connection for '" + argv.servername + "'");
|
console.info("Attempting to resolve external connection for '" + argv.servername + "'");
|
||||||
try {
|
try {
|
||||||
promise = require('./match-ips.js').match(argv.servername, opts);
|
promise = require('./lib/match-ips.js').match(argv.servername, opts);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.warn("Upgrade to version 2.x to use automatic certificate issuance for '" + argv.servername + "'");
|
console.warn("Upgrade to version 2.x to use automatic certificate issuance for '" + argv.servername + "'");
|
||||||
promise = PromiseA.resolve();
|
promise = PromiseA.resolve();
|
||||||
|
|
Loading…
Reference in New Issue