From bb3d9842dd18af75cc839089ffac69acc70d7ec0 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 11 Aug 2016 10:49:36 -0600 Subject: [PATCH] partial merge of https://github.com/dcohenb/node-letsencrypt/commit/9a0dd2381ff8ad78804257b47dcfed14f514fba5 --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index f7233db..5f2e810 100644 --- a/index.js +++ b/index.js @@ -6,6 +6,7 @@ var PromiseA = require('bluebird'); var leCore = require('letiny-core'); var merge = require('./lib/common').merge; var tplCopy = require('./lib/common').tplCopy; +var isValidDomain = require('./lib/common').isValidDomain; var LE = module.exports; LE.productionServerUrl = leCore.productionServerUrl; @@ -15,6 +16,7 @@ LE.logsDir = leCore.logsDir; LE.workDir = leCore.workDir; LE.acmeChallengPrefix = leCore.acmeChallengPrefix; LE.knownEndpoints = leCore.knownEndpoints; +LE.isValidDomain = isValidDomain; LE.privkeyPath = ':config/live/:hostname/privkey.pem'; LE.fullchainPath = ':config/live/:hostname/fullchain.pem'; @@ -128,6 +130,7 @@ LE.create = function (defaults, handlers, backend) { le = { backend: backend + , isValidDomain: isValidDomain , pyToJson: function (pyobj) { if (!pyobj) { return null;