make look more like real le object

This commit is contained in:
AJ ONeal 2016-08-11 01:10:37 -04:00
parent 88c8b812a2
commit 333a8b68f3
1 changed files with 3 additions and 3 deletions

View File

@ -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 });