Skip to content

Commit

Permalink
pkg server: acl correct admin key length
Browse files Browse the repository at this point in the history
  • Loading branch information
rkonfj committed May 18, 2023
1 parent 298a228 commit 8c319db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (k *key) outBytesLimited() bool {
}

func NewACL(aclPath, adminKey string) (*ACL, error) {
if len(adminKey) < 16 {
if len(adminKey) > 0 && len(adminKey) < 16 {
return nil, errors.New("the minimum admin key is 16 characters")
}
acl := &ACL{
Expand Down

0 comments on commit 8c319db

Please sign in to comment.