节点配置中增加集群的密钥信息

This commit is contained in:
GoEdgeLab
2024-04-11 14:19:08 +08:00
parent c2f1c965b3
commit e713ae1811
2 changed files with 6 additions and 1 deletions

View File

@@ -1105,6 +1105,11 @@ func (this *NodeDAO) ComposeNodeConfig(tx *dbs.Tx, nodeId int64, dataMap *shared
continue
}
// 集群密钥
if len(config.ClusterSecret) == 0 {
config.ClusterSecret = nodeCluster.Secret
}
// 所有节点IP地址
nodeIPAddresses, err := SharedNodeIPAddressDAO.FindAllAccessibleIPAddressesWithClusterId(tx, nodeconfigs.NodeRoleNode, clusterId, cacheMap)
if err != nil {