netcheck: add hairpinning detection

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2020-02-28 14:14:02 -08:00
parent 1abf2da392
commit bcf3719b9e
4 changed files with 63 additions and 5 deletions

View File

@ -249,6 +249,10 @@ type NetInfo struct {
// vary based on the destination IP.
MappingVariesByDestIP opt.Bool
// HairPinning is their router does hairpinning.
// It reports true even if there's no NAT involved.
HairPinning opt.Bool
// WorkingIPv6 is whether IPv6 works.
WorkingIPv6 opt.Bool