mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
fix: 修复codex的ua正则条件
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -42,7 +42,7 @@ class CodexCliValidator {
|
||||
// Codex CLI 的 UA 格式:
|
||||
// - codex_vscode/0.35.0 (Windows 10.0.26100; x86_64) unknown (Cursor; 0.4.10)
|
||||
// - codex_cli_rs/0.38.0 (Ubuntu 22.4.0; x86_64) WindowsTerminal
|
||||
const codexCliPattern = /^(codex_vscode|codex_cli_rs)\/[\d\.]+/i
|
||||
const codexCliPattern = /^(codex_vscode|codex_cli_rs)\/[\d.]+/i
|
||||
const uaMatch = userAgent.match(codexCliPattern)
|
||||
|
||||
if (!uaMatch) {
|
||||
|
||||
Reference in New Issue
Block a user