Coder Social home page Coder Social logo

Comments (6)

koalabearguo avatar koalabearguo commented on June 3, 2024

我特地查了一下,什么是前置代理功能,这个功能类似父级代理功能,就是在本机访问php server时,先通过一个HTTP/HTTPS/SOCKS代理,然后让这个父级代理连接php server,相比直接连接,中间套了一层代理;不知道我理解的对不对,添加这个功能倒不是很复杂,但我没明白什么情况下,需要这种功能,或者只是需要一个速度快的代理中转一下?

from php-proxy.

Ivan-ggg avatar Ivan-ggg commented on June 3, 2024

比如公司网络需要前置代理才能连接外网,内网默认无法访问外网。
还有就是您说的,通过速度快的代理进行加速。
套娃也可以增加追踪难度,提高安全性。

from php-proxy.

koalabearguo avatar koalabearguo commented on June 3, 2024

好,有空加上

from php-proxy.

koalabearguo avatar koalabearguo commented on June 3, 2024

hi,main分支最新的代码已经支持前向代理了,你可以自己编译试一下,我做过简单测试了,目前只支持http和socks5代理(这是golang http库自己实现的)
url 代理格式如下所示:

http://127.0.0.1:80
http://koala:[email protected]:80
socks5://user:[email protected]:1080
socks5://127.0.0.1:1080

php-proxy.json配置格式参考如下:

"fetchserver": "https://a.bc.com/go/index.php",
"password": "123456",
"sni": "",
"listen": "127.0.0.1:8081",
"debug": true,
"insecure": false,
"autoproxy": false,
"user-agent": "",
"proxy": "http://koala:[email protected]:80"
}

from php-proxy.

Ivan-ggg avatar Ivan-ggg commented on June 3, 2024

试了下,前置代理功能已经可以使用,非常感谢!

from php-proxy.

koalabearguo avatar koalabearguo commented on June 3, 2024

ok,最新的代码https proxy也做了支持;暂时打算支持这么多协议吧

http://127.0.0.1:80
http://koala:[email protected]:80
socks5://user:[email protected]:1080
socks5://127.0.0.1:1080
https://127.0.0.1:80
https://koala:[email protected]:80

from php-proxy.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.