yisier / nps

在 0.26.10 版本的基础上修改而来的
https://ehang.io/nps/documents
GNU General Public License v3.0
1.84k stars 223 forks source link

log中remoteAddr优先从X-Forwarded-For中获取 #116

Closed lesteryou closed 6 months ago

lesteryou commented 11 months ago

在nps http处于多层代理之后时,日志中无法获取到真实的IP,可以从header头的X-Forwarded-For字段获取