mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-03 02:21:58 +00:00
wgengine/magicsock: fix bug in peerMap.upsertEndpoint
Found by inspection by David Crawshaw while investigating tailscale/corp#3016. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
committed by
Josh Bleecher Snyder
parent
16870cb754
commit
9da22dac3d
@@ -1142,7 +1142,7 @@ func TestDiscoMessage(t *testing.T) {
|
||||
c.peerMap.upsertEndpoint(&endpoint{
|
||||
publicKey: n.Key,
|
||||
discoKey: n.DiscoKey,
|
||||
})
|
||||
}, key.DiscoPublic{})
|
||||
|
||||
const payload = "why hello"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user