mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +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) {
|
func (c *Conn) updateNetInfo(ctx context.Context) (*netcheck.Report, error) {
|
||||||
if DisableSTUNForTesting {
|
if DisableSTUNForTesting {
|
||||||
return nil, errors.New("STUN disabled for testing")
|
return new(netcheck.Report), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx, cancel := context.WithTimeout(ctx, 2*time.Second)
|
ctx, cancel := context.WithTimeout(ctx, 2*time.Second)
|
||||||
|
Loading…
Reference in New Issue
Block a user