Skip to content

如何增加X-Forwarded-For #5

Description

@tangkai123456

你好,我现在遇到了一个问题,�想请教一下。
在fakeServer中使用 req.socket.remoteAddress只能拿到127.0.0.1,在connect取clientRequest.socket.remoteAddress是能拿到正确的ip的的,那么怎么能在fakeServer中拿到这个ip呢,我想要代理https请求的同时,给请求的header增加一个X-Forwarded-For字段

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