节点中增加授权信息

This commit is contained in:
GoEdgeLab
2023-03-31 12:39:01 +08:00
parent 47dc1888d6
commit 6e7a5de794
2 changed files with 2 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ import (
var ( var (
IsPlus = false IsPlus = false
Edition = ""
MaxNodes int32 = 0 MaxNodes int32 = 0
NodeId int64 = 0 NodeId int64 = 0
Debug = false Debug = false

View File

@@ -986,6 +986,7 @@ func (this *NodeDAO) ComposeNodeConfig(tx *dbs.Tx, nodeId int64, dataMap *shared
var config = &nodeconfigs.NodeConfig{ var config = &nodeconfigs.NodeConfig{
Id: int64(node.Id), Id: int64(node.Id),
Edition: teaconst.Edition,
NodeId: node.UniqueId, NodeId: node.UniqueId,
Secret: node.Secret, Secret: node.Secret,
IsOn: node.IsOn, IsOn: node.IsOn,