mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-10-27 14:37:29 +08:00
parent
50d698fe37
commit
c9a5c6a0f9
1 changed files with 6 additions and 2 deletions
|
|
@ -102,9 +102,13 @@ func (api *DoApi) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Corre
|
|||
return nil, err
|
||||
}
|
||||
|
||||
existingRecords := make([]*models.RecordConfig, len(records))
|
||||
var existingRecords []*models.RecordConfig
|
||||
for i := range records {
|
||||
existingRecords[i] = toRc(dc, &records[i])
|
||||
r := toRc(dc, &records[i])
|
||||
if r.Type == "SOA" {
|
||||
continue
|
||||
}
|
||||
existingRecords = append(existingRecords, r)
|
||||
}
|
||||
|
||||
// Normalize
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue