fix: 修复key前缀验证
This commit is contained in:
@@ -121,7 +121,7 @@ func (km *KeyManager) LoadKeys() error {
|
||||
|
||||
for scanner.Scan() {
|
||||
line := strings.TrimSpace(scanner.Text())
|
||||
if line != "" && strings.HasPrefix(line, "sk-") {
|
||||
if line != "" {
|
||||
keys = append(keys, line)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user