Fix issue where ACL * would filter out returning connections (#1279)
This commit is contained in:
parent
56a7b1e349
commit
c7b459b615
8 changed files with 437 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue