1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

a little bit of debugging

This commit is contained in:
Craig Peterson
2017-11-08 10:25:10 -05:00
parent e7472f76f3
commit acec77d832
2 changed files with 5 additions and 7 deletions

View File

@@ -258,12 +258,10 @@ func Downcase(recs []*RecordConfig) {
switch r.Type {
case "ANAME", "CNAME", "MX", "NS", "PTR":
r.Target = strings.ToLower(r.Target)
case "A", "AAAA", "ALIAS", "CAA", "IMPORT_TRANSFORM", "SRV", "TLSA", "TXT", "SOA":
case "A", "AAAA", "ALIAS", "CAA", "IMPORT_TRANSFORM", "SRV", "TLSA", "TXT", "SOA", "CF_REDIRECT", "CF_TEMP_REDIRECT":
// Do nothing.
default:
panic(fmt.Sprintf("Downcase: Unimplemented rtype %v", r.Type))
// We panic so that we quickly find any switch statements
// that have not been updated for a new RR type.
// TODO: we'd like to panic here, but custom record types complicate things.
}
}
return