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:
Josh Bleecher Snyder
2021-11-10 14:03:47 -08:00
committed by Josh Bleecher Snyder
parent 16870cb754
commit 9da22dac3d
2 changed files with 7 additions and 8 deletions

View File

@@ -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"