1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
This commit is contained in:
Tom Limoncelli
2023-10-27 13:35:31 -04:00
parent 130fbc4a1e
commit 5d6f6ec5bb

View File

@@ -305,6 +305,9 @@ func (g *gcloudProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, exis
for _, r := range dc.Records {
if keyForRec(r) == ck {
if ck.Type == "TXT" {
// NB(tlim): These next two lines should not be merged. The
// chunks need to be allocated in a way that the memory is
// not re-used in the next iteration.
chunks := txtutil.ToChunks(r.GetTargetField())
newRRs.Rrdatas = append(newRRs.Rrdatas, chunks...)
} else {