This commit is contained in:
TenderIronh
2022-02-10 23:20:16 +08:00
parent 133fe046f8
commit b54fa2c6be
18 changed files with 32 additions and 22 deletions
+4 -1
View File
@@ -119,7 +119,6 @@ type NetworkConfig struct {
User string
localIP string
ipv6 string
hostName string
mac string
os string
publicIP string
@@ -184,6 +183,10 @@ func parseParams() {
gConf.Network.ServerHost = *serverHost
}
if gConf.Network.Node == "" {
if *node == "" { // config and param's node both empty
hostname := defaultNodeName()
node = &hostname
}
gConf.Network.Node = *node
}
if *token != 0 {