mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
wgengine/magicsock: in STUN-disabled test mode, let endpoint discovery proceed
This commit is contained in:
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…
Reference in New Issue
Block a user