Skip to content

Commit

Permalink
fix issue at makeCNAME
Browse files Browse the repository at this point in the history
  • Loading branch information
neex committed May 22, 2021
1 parent 39f9146 commit 30b10eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processors.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func convertAddr(addr string, q *query) ([]string, bool) {
}

func makeCNAME(cname string) string {
if cname[0] == '.' {
if len(cname) > 0 && cname[0] == '.' {
cname = cname[1:]
}
return cname
Expand Down

0 comments on commit 30b10eb

Please sign in to comment.