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

如何根据PAC文件FindProxyForURL函数实现自定义不同ip使用不同的socks5代理 #53

Closed
yiluoegit opened this issue Dec 22, 2021 · 0 comments

Comments

@yiluoegit
Copy link

yiluoegit commented Dec 22, 2021

由于docker for mac的实现基于虚拟化技术xhyve,所以我想在本地访问容器ip不得不使用docker开放的8888端口进行socks5代理。

我想实现根据不同ip可以使用不同的端口进行代理(就像它可以通过PAC默认走localhost:1080一样)但我不清楚该怎样做,因为我不太了解shadowsocks的实现原理所以我只能盲目的尝试修改 whiteiplist.pac 与 whitelist.pac里的FindProxyForURL函数,当我在FindProxyForURL函数体的头部新增以下内容时并没有达到我想要的结果
截屏2021-12-22 下午2 51 46

127.0.0.1:8888 是我电脑上docker的sockos5代理端口。
172.17.0.2:80 是我docker上启动的一个nginx容器。

帮我一下 😭... 谢谢!

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