Skip to content

Commit

Permalink
Update util.go
Browse files Browse the repository at this point in the history
  • Loading branch information
donnie4w committed Jan 21, 2024
1 parent 9cfb672 commit 3a5b84f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ func CheckUUID(uuid uint64) bool {
}

func CheckNode(node string) bool {
if _r := NodeToUUID(node); _r > 0 {
return CheckUUID(_r)
if len(node) <= sys.NodeMaxlength {
if _r := NodeToUUID(node); _r > 0 {
return CheckUUID(_r)
}
}
return false
}
Expand Down

0 comments on commit 3a5b84f

Please sign in to comment.