获取请求源ip时,https会取得127.0.0.1,访问http是正常的
Open
- Dominant language
- JavaScript
- Stars
- 7.9k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
requestDetail._req.socket.remoteAddress 使用内网访问时会出现127.0.0.1,而外网没有问题。看到——req的_peername: { address: '::ffff:127.0.0.1', family: 'IPv6', port: 50939 }很疑惑,求解答
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file or test is named. Reproduce the internal HTTP and HTTPS requests, then inspect requestDetail._req.socket.remoteAddress and the _req._peername values shown in the report. Done means explaining why HTTPS reports 127.0.0.1 or identifying a concrete correction, with coverage for the affected request path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100