fix(core): update

This commit is contained in:
Philipp Kunz 2021-01-22 21:12:42 +00:00
parent a4518f3068
commit 6d8deca9d4
2 changed files with 3 additions and 2 deletions

View File

@ -43,7 +43,8 @@ tap.test('should create a valid record for a subdomain', async (tools) => {
await testCloudflareAccount.convenience.createRecord(
`${randomPrefix}subdomain.bleu.de`,
'A',
'127.0.0.1'
'127.0.0.1',
120
);
});

View File

@ -175,7 +175,7 @@ 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, 2);
await this.convenience.createRecord(dnsChallenge.hostName, 'TXT', dnsChallenge.challenge, 120);
},
acmeRemoveDnsChallenge: async (dnsChallenge: plugins.tsclass.network.IDnsChallenge) => {
await this.convenience.removeRecord(dnsChallenge.hostName, 'TXT');