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
Maybe pointer to net.Addr could be added to RequestCtx set that it could be set by middleware that if set would be used by RequestCtx.RemoteAddr() instead of one from c.
This would allow implementing more robust and generic middlewares for handling X-Real-IP and/or X-Forwarded-For etc
The text was updated successfully, but these errors were encountered:
I can create a PR if idea is acceptable. I meant adding private variable to struct RequestCtx and adding method something like SetRemoteAddr that would set it.
Maybe pointer to
net.Addr
could be added toRequestCtx
set that it could be set by middleware that if set would be used byRequestCtx.RemoteAddr()
instead of one fromc
.This would allow implementing more robust and generic middlewares for handling
X-Real-IP
and/orX-Forwarded-For
etcThe text was updated successfully, but these errors were encountered: