net/dns: sort matchDomains to avoid test flake.

Signed-off-by: David Anderson <[email protected]>
This commit is contained in:
David Anderson authored and Dave Anderson committed 2021-04-07 15:40:31 -07:00
1 parent 68f76e9aa1
commit e560be6443
1 file changed
+3
+3
View File
@@ -5,6 +5,8 @@
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
}