mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
CLOUDFLARE: get-zones --ttl flag should handle CF's magic TTLs better (#657)
Fixes https://github.com/StackExchange/dnscontrol/issues/630
This commit is contained in:
@ -165,7 +165,7 @@ func GetZone(args GetZoneArgs) error {
|
||||
if defaultTTL == 0 {
|
||||
defaultTTL = prettyzone.MostCommonTTL(recs)
|
||||
}
|
||||
if defaultTTL != models.DefaultTTL {
|
||||
if defaultTTL != models.DefaultTTL && defaultTTL != 0 {
|
||||
fmt.Fprintf(w, "\n\tDefaultTTL(%d)", defaultTTL)
|
||||
}
|
||||
for _, rec := range recs {
|
||||
|
Reference in New Issue
Block a user