增加网络代理
#5877
Replies: 1 comment
|
这个能力已经有社区插件实现了:@tr1v3r/dsh-proxy(npm: 三个模式和你的描述一一对应,编辑 dsh-proxy:
mode: system # direct 直连 | system 跟随系统 | manual 手动
proxy: socks5://127.0.0.1:1080 # manual 模式:http(s)/socks5,支持 URL 鉴权
noProxy: [localhost, .internal.example]
exportEnv: true # 子进程(curl/git/stdio MCP)也跟随切换
原理是接管 undici 全局 dispatcher,覆盖进程内所有 安装: # ~/.config/dsh/profiles/<name>/package.json
"dependencies": { "@tr1v3r/dsh-proxy": "^0.1.2" },
"dsh": { "profile": { "bundles": ["@deepseek-ai/dsh-base", "@tr1v3r/dsh-proxy"] } }若官方后续想把这类能力收进内置插件,也欢迎直接参考这套实现。 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
配置deepseek-harness访问网络的方式。修改后立即生效,无需重启。需要有直连模式,跟随系统,手动模式,三种
All reactions