Allow 64 characters machine id
This commit is contained in:
parent
d72877f0a7
commit
cf8e9bb298
1 changed files with 2 additions and 2 deletions
|
|
@ -21,8 +21,8 @@ func CustomID(cid string) error {
|
|||
}
|
||||
|
||||
cid = strings.TrimSpace(cid)
|
||||
if l := len(cid); l != 32 {
|
||||
return fmt.Errorf("expected 32 characters machine id, got %d", l)
|
||||
if l := len(cid); l != 32 && l != 64 {
|
||||
return fmt.Errorf("expected 32 or 64 characters machine id, got %d", l)
|
||||
}
|
||||
|
||||
id = cid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue