wgengine/magicsock: in STUN-disabled test mode, let endpoint discovery proceed

pull/169/head
Brad Fitzpatrick 4 years ago
parent 5c1e443d34
commit a265d7cbff

@ -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)

Loading…
Cancel
Save