mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-08 06:04:20 +08:00
bypass acl policy
This commit is contained in:
parent
e2a0ceccf6
commit
35edcd01de
1 changed files with 3 additions and 0 deletions
|
@ -647,6 +647,9 @@ func IsUserAllowedToCommunicate(userName string, peer models.Node) (bool, []mode
|
|||
// IsPeerAllowed - checks if peer needs to be added to the interface
|
||||
func IsPeerAllowed(node, peer models.Node, checkDefaultPolicy bool) bool {
|
||||
var nodeId, peerId string
|
||||
if peer.IsFailOver && node.FailedOverBy == peer.ID {
|
||||
return true
|
||||
}
|
||||
if node.IsStatic {
|
||||
nodeId = node.StaticNode.ClientID
|
||||
node = node.StaticNode.ConvertToStaticNode()
|
||||
|
|
Loading…
Add table
Reference in a new issue