From 333a8b68f353090671e5e6d1afb1bbf43c63dfe8 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 11 Aug 2016 01:10:37 -0400 Subject: [PATCH] make look more like real le object --- lib/worker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/worker.js b/lib/worker.js index 4a907a0..81ce14d 100644 --- a/lib/worker.js +++ b/lib/worker.js @@ -4,7 +4,7 @@ module.exports.create = function (opts) { - opts.workerSniCallback = require('le-sni-auto').create({ + opts.sni = require('le-sni-auto').create({ notBefore: opts.notBefore || (10 * 24 * 60 * 60 * 1000) , notAfter: opts.notAfter || (5 * 24 * 60 * 60 * 1000) , getCertificates: function (domain, certs, cb) { @@ -18,11 +18,11 @@ module.exports.create = function (opts) { }); }); } - }).sniCallback; + }); - opts.httpsOptions = require('localhost.daplie.com-certificates').merge({ SNICallback: opts.workerSniCallback }); + opts.httpsOptions = require('localhost.daplie.com-certificates').merge({ SNICallback: opts.sni.sniCallback });