mapper: include UserProfiles in policy-change MapResponses

This commit is contained in:
Lealem Amedie
2026-05-05 13:34:20 -06:00
committed by Kristoffer Dalby
parent 2f907edf87
commit 6cd919d411

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)
}