mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 01:07:41 +08:00
fix tag update on extclients
This commit is contained in:
@@ -778,10 +778,13 @@ func AddStaticNodesWithTag(tag models.Tag, nMap map[string]models.Node) map[stri
|
|||||||
if extclient.RemoteAccessClientID != "" {
|
if extclient.RemoteAccessClientID != "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
nMap[extclient.ClientID] = models.Node{
|
if _, ok := extclient.Tags[tag.ID]; ok {
|
||||||
IsStatic: true,
|
nMap[extclient.ClientID] = models.Node{
|
||||||
StaticNode: extclient,
|
IsStatic: true,
|
||||||
|
StaticNode: extclient,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return nMap
|
return nMap
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user