All plugins

DSH / BUNDLE / CLIENT-UI

dsh-proxy-failover

v0.1.0PILIHU2022 / dsh-proxy-failover3d3dfbb436

InstallableBundlesUI & client pluginsCommunity · Topic auto-analysisWeb UI

Overview

dsh-proxy-failover

DSH 插件:web_fetch 经本地代理(Mihomo/Clash 等)出网以绕过 TUN fake-ip;代理关闭后请求自动改走直连,模型不再对失效代理反复重试。 / Routes web_fetch through the local proxy to bypass TUN fake-ip, then fails over to direct connections when the proxy stops, so model requests never retry against a dead proxy.

README / EN

Package documentation

Registry summary

DSH 插件:web_fetch 经本地代理(Mihomo/Clash 等)出网以绕过 TUN fake-ip;代理关闭后请求自动改走直连,模型不再对失效代理反复重试。 / Routes web_fetch through the local proxy to bypass TUN fake-ip, then fails over to direct connections when the proxy stops, so model requests never retry against a dead proxy.

dsh.pub verifies the pinned bundle contract, runtime facts, and distribution semantics. The complete README remains in the source repository.

Read the full README on GitHub

LIMITATIONS

Known limitations

- 只支持 `http(s)://` 代理,不支持 SOCKS / PAC(与 `@deepseek-ai/dsh-http-proxy` 一致); - 上游代理认证只支持 URL 里的 Basic 凭据; - 代理若在**响应传输中途**被杀,已经建立的隧道仍会断开——这是传输层事实, 插件保证的是「下一次请求」不需要重试,而不是让断掉的字节流复活; - 端口探测依赖 `CONNECT example.com:443` 验证;完全离线时可能找不到代理, 此时退回直连(离线状态下本来也无法出网); - 设置页的客户端 bundle 在加入后的**首次 DSH 重启**后才会出现;宿主接口不受影响; - `noProxy` 的运行时改动由 relay 直接分流(功能等同),但全局策略里的 `no_proxy` 仍是启动时的值,直到下一次插件重载才更新;对子进程也无影响; - `web_fetch` 的 fake-ip 修复依赖 `@deepseek-ai/dsh-http-proxy` 的实例身份; 插件会通过 `DSH_HOME`、安装目录、`cwd` 等锚点解析,并在安装后自检 `routed`。