mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-14 23:17:29 +00:00
tstest/integration/testcontrol: include peer CapMaps in MapResponses
Fixes #16560 Signed-off-by: Raj Singh <raj@tailscale.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
f421907c38
commit
d6d29abbb6
@@ -1000,7 +1000,11 @@ func (s *Server) MapResponse(req *tailcfg.MapRequest) (res *tailcfg.MapResponse,
|
||||
s.mu.Lock()
|
||||
peerAddress := s.masquerades[p.Key][node.Key]
|
||||
routes := s.nodeSubnetRoutes[p.Key]
|
||||
peerCapMap := maps.Clone(s.nodeCapMaps[p.Key])
|
||||
s.mu.Unlock()
|
||||
if peerCapMap != nil {
|
||||
p.CapMap = peerCapMap
|
||||
}
|
||||
if peerAddress.IsValid() {
|
||||
if peerAddress.Is6() {
|
||||
p.Addresses[1] = netip.PrefixFrom(peerAddress, peerAddress.BitLen())
|
||||
|
Reference in New Issue
Block a user