net/dns: sort matchDomains to avoid test flake.

Signed-off-by: David Anderson <danderson@tailscale.com>
pull/1677/head
David Anderson 2021-04-07 00:54:54 -07:00 committed by Dave Anderson
parent 68f76e9aa1
commit e560be6443
1 changed files with 3 additions and 0 deletions

View File

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