From bcad7c738b11c30f25ea9c9b54bf58adbf12347a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B8?= <37530178+riku22@users.noreply.github.com> Date: Mon, 15 Mar 2021 01:16:53 +0900 Subject: [PATCH] CLOUDNS: Note that TXT records do not permit double-quotes. Fix typo (#1094) - Add AuditRecords for TXT NoDoubleQuotes --- providers/cloudns/api.go | 2 +- providers/cloudns/auditrecords.go | 5 +++++ providers/cloudns/cloudnsProvider.go | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/providers/cloudns/api.go b/providers/cloudns/api.go index 3f2f3e386..d95b9b923 100644 --- a/providers/cloudns/api.go +++ b/providers/cloudns/api.go @@ -9,7 +9,7 @@ import ( "time" ) -// Api layer for CloDNS +// Api layer for ClouDNS type cloudnsProvider struct { domainIndex map[string]string nameserversNames []string diff --git a/providers/cloudns/auditrecords.go b/providers/cloudns/auditrecords.go index ee4bec450..71e7cd246 100644 --- a/providers/cloudns/auditrecords.go +++ b/providers/cloudns/auditrecords.go @@ -24,5 +24,10 @@ func AuditRecords(records []*models.RecordConfig) error { } // Still needed as of 2021-03-01 + if err := recordaudit.TxtNoDoubleQuotes(records); err != nil { + return err + } + // Still needed as of 2021-03-11 + return nil } diff --git a/providers/cloudns/cloudnsProvider.go b/providers/cloudns/cloudnsProvider.go index 919ba96f9..0b1f996c1 100644 --- a/providers/cloudns/cloudnsProvider.go +++ b/providers/cloudns/cloudnsProvider.go @@ -14,7 +14,7 @@ import ( ) /* -CloDNS API DNS provider: +ClouDNS API DNS provider: Info required in `creds.json`: - auth-id or sub-auth-id - auth-password