Skip to content

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

Description

@Whhy

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions