dsh-wsl-fetch

在 ctx.web 注册 wsl-proxy 抓取后端,让官方 web_fetch 经 HTTP(S)_PROXY 用 undici ProxyAgent 出网,避免官方实现在 WSL 里 DNS 钉死后直连公网 IP,从而在 Windows 代理后出现 TypeError: fetch failed。

插件介绍

在 ctx.web 注册 wsl-proxy 抓取后端,让官方 web_fetch 经 HTTP(S)_PROXY 用 undici ProxyAgent 出网,避免官方实现在 WSL 里 DNS 钉死后直连公网 IP,从而在 Windows 代理后出现 TypeError: fetch failed。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:173787247/dsh-wsl-fetch

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

第三方安装实测

安装测试结果
安装与注册通过
测试日期

安装提示

  • 可能调用终端命令