mapper: include UserProfiles in policy-change MapResponses

This commit is contained in:
Lealem Amedie authored and Kristoffer Dalby committed 2026-05-11 09:25:26 +01:00
1 parent 2f907edf87
commit 6cd919d411
1 file changed
+3
+3
View File
@@ -239,7 +239,10 @@ func (m *mapper) policyChangeResponse(
// Send remaining peers in PeersChanged - their AllowedIPs may have
// changed due to the policy update (e.g., different routes allowed).
// Cross-user peers must also carry their user profile, otherwise the
// client's netmap shows the peer without a UserProfiles[user] entry.
if currentPeers.Len() > 0 {
builder.WithUserProfiles(currentPeers)
builder.WithPeerChanges(currentPeers)
}