fix(core): update

This commit is contained in:
2022-09-27 19:24:52 +02:00
parent 0248d52548
commit fc0a27f5b6
6 changed files with 21 additions and 42 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@mojoio/cloudflare',
version: '6.0.0',
version: '6.0.1',
description: 'easy cloudflare management'
}

View File

@ -175,7 +175,12 @@ export class CloudflareAccount {
// acme convenience functions
acmeSetDnsChallenge: async (dnsChallenge: plugins.tsclass.network.IDnsChallenge) => {
await this.convenience.cleanRecord(dnsChallenge.hostName, 'TXT');
await this.convenience.createRecord(dnsChallenge.hostName, 'TXT', dnsChallenge.challenge, 120);
await this.convenience.createRecord(
dnsChallenge.hostName,
'TXT',
dnsChallenge.challenge,
120
);
},
acmeRemoveDnsChallenge: async (dnsChallenge: plugins.tsclass.network.IDnsChallenge) => {
await this.convenience.removeRecord(dnsChallenge.hostName, 'TXT');