Skip to content

fix(tauri): force reqwest rustls-only TLS backend#1427

Open
change8 wants to merge 1 commit intofarion1231:mainfrom
change8:codex/fix-rustls-only-reqwest
Open

fix(tauri): force reqwest rustls-only TLS backend#1427
change8 wants to merge 1 commit intofarion1231:mainfrom
change8:codex/fix-rustls-only-reqwest

Conversation

@change8
Copy link

@change8 change8 commented Mar 11, 2026

背景

在 macOS 下,部分 Claude 兼容网关会出现 TLS 握手失败,导致请求转发失败并触发熔断(CLI 看到 502/503)。

修复

将 reqwest 调整为 rustls-only:

  • 关闭 default features
  • 显式启用 rustls-tls/json/stream/socks

为什么

避免 native-tls 在部分端点上的兼容性问题,提升跨平台一致性。

验证

  • cargo check 通过
  • cargo test 通过
  • vitest 通过
  • 实际转发请求恢复正常(HTTP 200)

其他

不包含任何用户 API Key 或私有配置信息。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant