auto adjust node name

This commit is contained in:
TenderIronh
2022-09-13 20:47:32 +08:00
parent 215feb8721
commit 2af77668fe
6 changed files with 37 additions and 19 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ func parseParams(subCommand string) {
gConf.Network.ServerHost = *serverHost
}
if *node != "" {
if len(*node) < 8 {
if len(*node) < MinNodeNameLen {
gLog.Println(LvERROR, ErrNodeTooShort)
os.Exit(9)
}