mirror of
https://github.com/juanfont/headscale.git
synced 2026-05-23 10:42:30 +09:00
mapper: include UserProfiles in policy-change MapResponses
This commit is contained in:
committed by
Kristoffer Dalby
parent
2f907edf87
commit
6cd919d411
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user