mirror of
https://github.com/juanfont/headscale.git
synced 2026-03-24 02:11:21 +01:00
Fix issue where ACL * would filter out returning connections (#1279)
This commit is contained in:
@@ -243,6 +243,12 @@ func filterMachinesByACL(
|
||||
|
||||
for _, peerIP := range peerIPs {
|
||||
if dstMap, ok := aclPeerCacheMap[peerIP]; ok {
|
||||
// match source and all destination
|
||||
if _, dstOk := dstMap["*"]; dstOk {
|
||||
peers[peer.ID] = peer
|
||||
|
||||
continue
|
||||
}
|
||||
// match return path
|
||||
for _, machineIP := range machineIPs {
|
||||
if _, dstOk := dstMap[machineIP]; dstOk {
|
||||
|
||||
Reference in New Issue
Block a user