Parcourir la source

Merge branch 'NET-1613' of https://github.com/gravitl/netmaker into NET-1615-ext

abhishek9686 il y a 10 mois
Parent
commit
d792e2e529
1 fichiers modifiés avec 6 ajouts et 3 suppressions
  1. 6 3
      logic/nodes.go

+ 6 - 3
logic/nodes.go

@@ -792,10 +792,13 @@ func AddStaticNodesWithTag(tag models.Tag, nMap map[string]models.Node) map[stri
 		if extclient.RemoteAccessClientID != "" {
 			continue
 		}
-		nMap[extclient.ClientID] = models.Node{
-			IsStatic:   true,
-			StaticNode: extclient,
+		if _, ok := extclient.Tags[tag.ID]; ok {
+			nMap[extclient.ClientID] = models.Node{
+				IsStatic:   true,
+				StaticNode: extclient,
+			}
 		}
+
 	}
 	return nMap
 }