diff --git a/wgengine/magicsock/magicsock.go b/wgengine/magicsock/magicsock.go index ac9ad5d6e..0dcd3280a 100644 --- a/wgengine/magicsock/magicsock.go +++ b/wgengine/magicsock/magicsock.go @@ -2179,9 +2179,6 @@ func (c *Conn) SetNetworkMap(nm *netmap.NetworkMap) { c.peerMap.forEachDiscoEndpoint(func(ep *endpoint) { if !keep[ep.publicKey] { c.peerMap.deleteDiscoEndpoint(ep) - if !ep.discoKey.IsZero() { - delete(c.sharedDiscoKey, ep.discoKey) - } } }) }