From 251f2d7bc287c96162f53d82333a72fd0b8df2cc Mon Sep 17 00:00:00 2001 From: Misha Bragin Date: Tue, 11 Apr 2023 14:28:22 +0200 Subject: [PATCH] Pass newly generated ID to network map when adding peer (#800) --- management/server/peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/server/peer.go b/management/server/peer.go index b4b918083..a223308b0 100644 --- a/management/server/peer.go +++ b/management/server/peer.go @@ -576,7 +576,7 @@ func (am *DefaultAccountManager) AddPeer(setupKey, userID string, peer *Peer) (* return nil, nil, err } - networkMap := account.GetPeerNetworkMap(peer.ID, am.dnsDomain) + networkMap := account.GetPeerNetworkMap(newPeer.ID, am.dnsDomain) return newPeer, networkMap, nil }