Skip to content

fix: support authenticated socks5/http proxies#38

Open
noir017 wants to merge 1 commit into
black-ant:masterfrom
noir017:fix/authenticated-socks5-proxy
Open

fix: support authenticated socks5/http proxies#38
noir017 wants to merge 1 commit into
black-ant:masterfrom
noir017:fix/authenticated-socks5-proxy

Conversation

@noir017

@noir017 noir017 commented Jul 5, 2026

Copy link
Copy Markdown

Chromium 的 --proxy-server 无法携带凭据,导致导入带鉴权的
socks5://user:pass@host:port 代理时chrome浏览器静默丢弃鉴权而连接失败。

内核选择器原先将所有 socks5/http 一律固定为 native,不能使用 xray/mihomo。

现改为:带鉴权的 socks5/http 自动使用 xray/mihomo 代理为本地无鉴权 socks5 再交给浏览器;无鉴权
代理仍走 native。

image

Chromium 的 --proxy-server 无法携带凭据,导致导入带鉴权的
socks5://user:pass@host:port 代理时浏览器静默丢弃鉴权而连接失败。

内核选择器原先将所有 socks5/http 一律固定为 native,永远走不到
已有的 xray/mihomo 桥接逻辑。现改为:带鉴权的 socks5/http 自动
使用 xray/mihomo 桥接为本地无鉴权 socks5 再交给浏览器;无鉴权
代理仍走 native。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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