Skip to content

Releases: tonyAmadeus/dsh-proxy-switch

Release list

v0.1.0

Choose a tag to compare

@tonyAmadeus tonyAmadeus released this 17 Oct 15:32

DSH 出站代理开关 · 首个版本 🎉

Clash 开着就走 Clash,关掉自动直连,界面一键切换,不用重启 DSH。

✨ 功能

  • 三种模式:自动(探测 Clash,1 秒缓存)/ 直连 / 走 Clash
  • 本地路由器:默认 127.0.0.1:17897,.env 指向它后由插件按模式选路
  • 一键切换:输入框旁的 🌐 面板,切换即时生效,无需重启
  • 顺手修复:DSH 走 HTTPS_PROXY 时跳过私有地址校验,缓解 Clash TUN + fake-ip 下 web_fetch 的 non-public IP 报错
  • 可配置:routerPort / clashPort / modeFile / logFile

📦 安装

npm(推荐)

dsh plugin add dsh-proxy-switch@0.1.0

git tag

dsh plugin add "git+https://github.com/tonyAmadeus/dsh-proxy-switch.git#v0.1.0"

装完在 ~/.dsh/.env 里加 http_proxy=http://127.0.0.1:17897 与 https_proxy=http://127.0.0.1:17897,再重启 DSH 即可。

⚠️ 已知限制

  • 只支持 HTTP/HTTPS(DSH 不支持 SOCKS)
  • DSH 启动后约 1–2 秒端口尚未就绪,期间请求可能失败一次,随后自动恢复

详见 README。