mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
BUG: Some DNS zones are downloaded twice (#2120)
Signed-off-by: Amelia Aronsohn <squirrel@wearing.black> Co-authored-by: Tom Limoncelli <tal@whatexit.org> Co-authored-by: Grégoire Henry <hnrgrgr@users.noreply.github.com> Co-authored-by: Amelia Aronsohn <squirrel@wearing.black> Co-authored-by: Kai Schwarz <kschwarz@hexonet.net> Co-authored-by: Asif Nawaz <asif.nawaz@centralnic.com> Co-authored-by: imlonghao <git@imlonghao.com> Co-authored-by: Will Power <1619102+willpower232@users.noreply.github.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import "github.com/StackExchange/dnscontrol/v3/models"
|
||||
// SplitSingleLongTxt finds TXT records with a single long string and splits it
|
||||
// into 255-octet chunks. This is used by providers that, when a user specifies
|
||||
// one long TXT string, split it into smaller strings behind the scenes.
|
||||
// This should be called from GetZoneRecordsCorrections().
|
||||
func SplitSingleLongTxt(records []*models.RecordConfig) {
|
||||
for _, rc := range records {
|
||||
if rc.HasFormatIdenticalToTXT() {
|
||||
|
Reference in New Issue
Block a user