mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-05 14:57:49 +00:00
net/dns: sort matchDomains to avoid test flake.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
68f76e9aa1
commit
e560be6443
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user