mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
wgengine/magicsock: add nodeid to panic condition on public key reuse
If the condition arises, it should be easy to track down. Updates #9547 Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:
parent
2066f9fbb2
commit
80206b5323
@ -1893,7 +1893,7 @@ func (c *Conn) SetNetworkMap(nm *netmap.NetworkMap) {
|
||||
// that differs from the one the NodeID had. But double check.
|
||||
if ep.nodeID != n.ID() {
|
||||
// Server error.
|
||||
devPanicf("public key moved between nodeIDs")
|
||||
devPanicf("public key moved between nodeIDs (old=%v new=%v, key=%s)", ep.nodeID, n.ID(), n.Key().String())
|
||||
} else {
|
||||
// Internal data structures out of sync.
|
||||
devPanicf("public key found in peerMap but not by nodeID")
|
||||
|
Loading…
x
Reference in New Issue
Block a user