monkeyWie / proxyee

HTTP proxy server,support HTTPS&websocket.MITM impl,intercept and tamper HTTPS traffic.
MIT License
1.51k stars 566 forks source link

证书下载不能使用localhost #173

Closed Enaium closed 2 years ago

Enaium commented 2 years ago

serverConfig(config).start("localhost", 19808);

只能使用127.0.0.1

monkeyWie commented 2 years ago

确实有问题,我重新思考了下,不能用ip和port的方式来匹配是不是直接请求的代理服务器。 在代理服务器被http代理的时候,浏览器会传递一个Proxy-Connection头,通过这个头来区分来源是代理还是浏览器直接请求就可以搞定了。

monkeyWie commented 2 years ago

已修复:https://github.com/monkeyWie/proxyee/pull/174