Spaces:
Paused

icebear0828 Claude Opus 4.6 commited on
Commit
38895cf
·
1 Parent(s): 6b3630b

fix: use known-profile list instead of runtime detection for TLS impersonation

Browse files

The previous testProfile() approach using `curl -V` never validated
the --impersonate target. Worse, v1.5.x silently accepts unknown
profiles but applies NO impersonation (JA3 fingerprint = bare curl).

Replace runtime detection with a deterministic known-profile list.
Any configured chromeN is mapped to the nearest supported version
(e.g. chrome137 → chrome136). This works reliably across all
curl-impersonate versions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

1 file changed +26 -34
src/tls/curl-binary.ts+26-34