wgengine/magicsock: re-STUN on DERP connection death

Fixes #201
pull/210/head
Brad Fitzpatrick 5 years ago
parent 1ab5b31c4b
commit ea9310403d

@ -876,6 +876,7 @@ func (c *Conn) runDerpReader(ctx context.Context, derpFakeAddr *net.UDPAddr, dc
return return
default: default:
} }
c.ReSTUN("derp-close")
c.logf("[%p] derp.Recv(derp%d): %v", dc, derpFakeAddr.Port, err) c.logf("[%p] derp.Recv(derp%d): %v", dc, derpFakeAddr.Port, err)
time.Sleep(250 * time.Millisecond) time.Sleep(250 * time.Millisecond)
continue continue

Loading…
Cancel
Save