Skip to content

Commit

Permalink
perf: domain status use original case
Browse files Browse the repository at this point in the history
  • Loading branch information
soxft committed Sep 1, 2024
1 parent c102b4e commit 543309c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ func searchKeyName(key string) string {
func fixDomainStatus(status []string) []string {
for k, v := range status {
names := strings.Split(strings.TrimSpace(v), " ")
status[k] = strings.ToLower(names[0])
if status[k] == "not" && len(names) > 1 && strings.ToLower(names[1]) == "delegated" {
status[k] = names[0]
if strings.ToLower(status[k]) == "not" && len(names) > 1 && strings.ToLower(names[1]) == "delegated" {
status[k] = "not delegated"
}
}
Expand Down

0 comments on commit 543309c

Please sign in to comment.