Fix double dash in generated keys

This commit is contained in:
2025-12-04 23:25:51 +01:00
parent a1b6f0c1b0
commit 2d0acc60f2
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ func NewAPIAuthMiddleware(authCfg config.AuthConfig, authStore database.AuthStor
const banner = "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
if authCfg.RequireManagementAuth && len(authCfg.ManagementKeys) == 0 {
key, err := auth.GenerateKey("llamactl-mgmt-")
key, err := auth.GenerateKey("llamactl-mgmt")
if err != nil {
log.Printf("Warning: Failed to generate management key: %v", err)
// Fallback to PID-based key for safety