net/netcheck: deflake (maybe) magicsock's TestNewConn

Updates #6207

Change-Id: I51d200d0b42b9a1ef799d0abfc8d4bd871c50cf2
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2022-11-05 21:44:33 -07:00
committed by Brad Fitzpatrick
parent db2cc393af
commit 036334e913
3 changed files with 13 additions and 1 deletions

View File

@@ -144,3 +144,6 @@ type DERPNode struct {
// If empty, it's assumed to be the same as the DERP server.
STUNTestIP string `json:",omitempty"`
}
// DotInvalid is a fake DNS TLD used in tests for an invalid hostname.
const DotInvalid = ".invalid"