netcheck: ignore IPv6 STUN failures

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/178/head
Brad Fitzpatrick 5 years ago committed by Brad Fitzpatrick
parent 4fd29349b9
commit ed7e088729

@ -311,7 +311,14 @@ func (c *Client) GetReport(ctx context.Context) (*Report, error) {
DNSCache: dnscache.Get(), DNSCache: dnscache.Get(),
} }
c.s6 = s6 c.s6 = s6
grp.Go(func() error { return s6.Run(ctx) }) grp.Go(func() error {
if err := s6.Run(ctx); err != nil {
// IPv6 seemed like it was configured, but actually failed.
// Just log and return a nil error.
c.logf("netcheck: ignoring IPv6 failure: %v", err)
}
return nil
})
if c.GetSTUNConn6 == nil { if c.GetSTUNConn6 == nil {
go reader(s6, pc6) go reader(s6, pc6)
} }

Loading…
Cancel
Save