report error if zone doesn't match
This commit is contained in:
parent
948e6510ba
commit
b54e8236cb
|
@ -14,6 +14,10 @@ module.exports.create = function(config) {
|
||||||
throw Error('listing zones not implemented');
|
throw Error('listing zones not implemented');
|
||||||
},
|
},
|
||||||
set: function(data) {
|
set: function(data) {
|
||||||
|
var ch = data.challenge;
|
||||||
|
if (!ch.dnsZone) {
|
||||||
|
throw new Error('No matching zone for ' + ch.dnsHost);
|
||||||
|
}
|
||||||
// console.info('Add TXT', data);
|
// console.info('Add TXT', data);
|
||||||
throw Error('setting TXT not implemented');
|
throw Error('setting TXT not implemented');
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue