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
Copy Markdown

@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 或私有配置信息。

@farion1231
Copy link
Copy Markdown
Owner

很抱歉让你等了这么久。这个项目目前只有我一个人在维护,之前有段时间确实没能及时跟进。这是我的错。你的贡献对项目很重要,我会安排 review。如果需要 rebase 到最新代码,告诉我或者我直接来处理都可以。感谢你的付出和耐心。

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.

2 participants