diff --git a/wgengine/magicsock/magicsock.go b/wgengine/magicsock/magicsock.go index d98d86ff9..de60bec9b 100644 --- a/wgengine/magicsock/magicsock.go +++ b/wgengine/magicsock/magicsock.go @@ -294,7 +294,7 @@ func (c *Conn) epUpdate(ctx context.Context) { func (c *Conn) updateNetInfo(ctx context.Context) (*netcheck.Report, error) { if DisableSTUNForTesting { - return nil, errors.New("STUN disabled for testing") + return new(netcheck.Report), nil } ctx, cancel := context.WithTimeout(ctx, 2*time.Second)