mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-10 02:31:59 +09:00
45d5544736
Add unit tests covering the subnet-to-subnet ACL scenario where both src and dst are subnet CIDRs served by different subnet routers. Tests cover CanAccess (peer visibility), ReduceRoutes (route filtering), and ReduceNodes (peer list reduction). Positive cases for routers that advertise the referenced subnets, and negative cases ensuring regular nodes and unrelated routers gain no extra visibility. These tests currently fail and will be fixed in the next commit. Updates #3157