mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-22 16:07:11 +08:00
NM-261: skip extra allowed ips for disbaled extclients
This commit is contained in:
+1
-1
@@ -745,7 +745,7 @@ func getExtpeersExtraRoutes(node models.Node) (egressRoutes []models.EgressNetwo
|
||||
return
|
||||
}
|
||||
for _, extPeer := range extPeers {
|
||||
if len(extPeer.ExtraAllowedIPs) == 0 {
|
||||
if len(extPeer.ExtraAllowedIPs) == 0 || !extPeer.Enabled {
|
||||
continue
|
||||
}
|
||||
if ok, _ := IsNodeAllowedToCommunicate(extPeer.ConvertToStaticNode(), node, true); !ok {
|
||||
|
||||
Reference in New Issue
Block a user