Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以改用redsocks来设置全局代理吗? #128

Open
cyfex opened this issue May 9, 2023 · 0 comments
Open

可以改用redsocks来设置全局代理吗? #128

cyfex opened this issue May 9, 2023 · 0 comments

Comments

@cyfex
Copy link

cyfex commented May 9, 2023

Your os

Ubuntu 22.04

The version of electron-ssr

v0.2.7

What's the problem

目前是使用gsettings来设置socks代理的。但一个问题是,用gsettings set org.gnome.system.proxy.socks设置后,系统里的环境变量all_proxy和ALL_PROXY会变成形如"socks://127.0.0.1:1080"的模样。但很多软件,比如pip是无法识别这个"socks://"的protocol的,需要更具体比如"socks5://"的形式。然而gsettings似乎做不到这一点,只能生成一个"socks://"的形式,使得这个软件的易用性被打折扣了。

可以参考https://superuser.com/a/1402071/737207 这个答案利用redsocks的方式生成全局代理吗?在这个方案下,代理可以明确地指定为"socks5://"类型,避免"socks://"不识别的麻烦。

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

No branches or pull requests

1 participant