wuchangming / node-mitmproxy

node-mitmproxy is an extensible man-in-the-middle(MITM) proxy server for HTTP/HTTPS base on Node.js.
MIT License
280 stars 62 forks source link

为什么https时responseInterceptor中得到客户端IP(req.socket中得到)总是127.0.0.1呢? #17

Open Whhy opened 5 years ago

Whhy commented 5 years ago

想在responseInterceptor中得到代理客户端的IP,在http时能通过req.socket中得到,但是在https时,得到的全是127.0.0.1了,无法得到客户端的IP。

请问怎么在https时得到请求客户端的IP信息?