Open Whhy opened 5 years ago
想在responseInterceptor中得到代理客户端的IP,在http时能通过req.socket中得到,但是在https时,得到的全是127.0.0.1了,无法得到客户端的IP。
请问怎么在https时得到请求客户端的IP信息?
想在responseInterceptor中得到代理客户端的IP,在http时能通过req.socket中得到,但是在https时,得到的全是127.0.0.1了,无法得到客户端的IP。
请问怎么在https时得到请求客户端的IP信息?