Replies: 1 comment
-
I'm a bit confused here. As far as I'm aware, Rocket doesn't provide any mechanisms intended for use with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi 👋
I tried deploying a Rocket application behind a IIS Reverse Proxy today but I ran into some trouble.
IIS sets the connecting IP in
x-forwarded-for
header but also includes the client port, like this:x-forwarded-for: 10.1.1.6:61234
. This makes the IP "invalid" in the eyes of theIpAddr
parser.Would it make sense to allow this syntax as well? Is there a scenario where the port number is useful to someone implementing a Rocket application? Maybe adding a
Request::client_socker_addr()
method?I did figure out how to make IIS only include the IP in the
x-forwarded-for
header but I think It'd be nice if it worked out of the box.Beta Was this translation helpful? Give feedback.
All reactions