net/dns: sort matchDomains to avoid test flake.
package dns
import (
+ "sort"
+
"inet.af/netaddr"
)
@@ -99,6 +101,7 @@ func (c Config) matchDomains() []string {
ret = append(ret, suffix)
seen[suffix] = true
}
+ sort.Strings(ret)
return ret
}
