mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
BUG: diff2: ttl changes don't always work (#2093)
This commit is contained in:
@@ -105,10 +105,11 @@ func checkNSModifications(dc *models.DomainConfig) {
|
||||
}
|
||||
|
||||
func toRecord(r *namecom.Record, origin string) *models.RecordConfig {
|
||||
heapr := r // NB(tlim): Unsure if this is actually needed.
|
||||
rc := &models.RecordConfig{
|
||||
Type: r.Type,
|
||||
TTL: r.TTL,
|
||||
Original: r,
|
||||
Original: heapr,
|
||||
}
|
||||
if !strings.HasSuffix(r.Fqdn, ".") {
|
||||
panic(fmt.Errorf("namedotcom suddenly changed protocol. Bailing. (%v)", r.Fqdn))
|
||||
|
Reference in New Issue
Block a user