support custom node name

This commit is contained in:
hantmac
2020-04-28 20:41:42 +08:00
parent 7add8ea36f
commit 7d0b0cc5cf
4 changed files with 70 additions and 5 deletions

View File

@@ -80,7 +80,7 @@ func GetCurrentNode() (Node, error) {
Key: key,
Id: bson.NewObjectId(),
Ip: ip,
Name: ip,
Name: key,
Mac: mac,
Hostname: hostname,
IsMaster: true,