From b54e8236cb0d45f59307b0c44ef5a325da1bf20e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 23 Jul 2019 22:41:01 -0600 Subject: [PATCH] report error if zone doesn't match --- lib/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/index.js b/lib/index.js index e25856a..3f0917c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -14,6 +14,10 @@ module.exports.create = function(config) { throw Error('listing zones not implemented'); }, set: function(data) { + var ch = data.challenge; + if (!ch.dnsZone) { + throw new Error('No matching zone for ' + ch.dnsHost); + } // console.info('Add TXT', data); throw Error('setting TXT not implemented'); },