Request IPs? #91
Answered
by
kartikk221
BobbyWibowo
asked this question in
Q&A
-
Hyper-Express was started with const safe = new HyperExpress.Server({
trust_proxy: true
}) Yet, here's what I'm getting in Response: req.headers: {
connection: 'upgrade',
host: 'safe.fiery.me',
'x-real-ip': '180.x.x.x',
'x-forwarded-for': '180.x.x.x, 162.158.163.156',
'x-forwarded-proto': 'https',
...
}
req.ip: '127.0.0.1'
req.proxy_ip: '' In It's running behind Nginx and Cloudflare, for context |
Beta Was this translation helpful? Give feedback.
Answered by
kartikk221
Jul 13, 2022
Replies: 1 comment 6 replies
-
Could you clarify how the behavior of the |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
BobbyWibowo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you clarify how the behavior of the
trust_proxy
parameter is incorrect or unintended?The
trust_proxy
parameter is internally used in ExpressJS compatibility properties likeResponse.protocol
,Response.ips
,Response.hostname
.