chore: add comment

This commit is contained in:
Skyxim 2023-04-01 10:52:20 +08:00
parent 07fb529e36
commit 971131d951

View File

@ -34,6 +34,7 @@ func NewDomainSet(keys []string) *DomainSet {
reserveDomains = append(reserveDomains, utils.Reverse(domain))
})
// ensure that the same prefix is continuous
// and according to the ascending sequence of length
sort.Strings(reserveDomains)
keys = reserveDomains
if len(keys) == 0 {