You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like at the moment remote address is not passed to coyote request. It's quite easy to do with some thing like this in TomcatServiceInvocationHandler.java (I modified the signature to pass the entire context):
Related: line#81
When TomcatServiceInvocationHandler converts a Netty HTTP request to a
Coyote request, it should set the remoteAddr() and remoteHost() property
of the Coyote request.
Related: line#81
Motivation:
When TomcatServiceInvocationHandler converts a Netty HTTP request to a
Coyote request, it should set the remoteAddr() and remoteHost() property
of the Coyote request.
Modifications:
- Fill remoteAddr/remoteHost/remotePort/localAddr/localName/localPort of
Coyote request
- Add ServiceInvocationContext.localAddress() to get the local address
and port
- Fix the content-type of the test JSP pages
Result:
Fixesline#81
It looks like at the moment remote address is not passed to coyote request. It's quite easy to do with some thing like this in TomcatServiceInvocationHandler.java (I modified the signature to pass the entire context):
I had a servlet that was performing some authorization based on the remote address. With the change above is works fine now :)
The text was updated successfully, but these errors were encountered: