mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 17:29:15 +08:00
added host registration endpoint
This commit is contained in:
@@ -191,9 +191,9 @@ func getUniqueEnrollmentID() (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
newID := ncutils.MakeRandomString(32)
|
||||
newID := ncutils.MakeRandomString(models.EnrollmentKeyLength)
|
||||
for _, ok := currentKeys[newID]; ok; {
|
||||
newID = ncutils.MakeRandomString(32)
|
||||
newID = ncutils.MakeRandomString(models.EnrollmentKeyLength)
|
||||
}
|
||||
return newID, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user