From: ken Date: Tue, 27 Jun 2017 23:22:06 +0000 (+0000) Subject: https quick fix, TLS and NOTLS modes working X-Git-Url: https://git.kengrimes.com/?p=henge%2Fkiak.git;a=commitdiff_plain;h=2f06270153df4b3b43d42645714168629dd10372 https quick fix, TLS and NOTLS modes working --- diff --git a/main.js b/main.js index a058a1c..cdf8601 100644 --- a/main.js +++ b/main.js @@ -112,7 +112,7 @@ if (!opts['no-tls']) { console.log(`ERR: Cert ${opts['ca-cert']} inaccessible, tls will fail`) else if (key != undefined) { router.httpsOpts = { cert: cert, key: key} - router.httpd = https.createServer(this.httpsOpts, router.respond) + router.httpd = https.createServer(router.httpsOpts, router.respond) .listen(opts['port']) } }