We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package main import ( "github.com/gin-gonic/gin" ) func main() { gin.Default().RunUnix("./example.sock") }
ClientIP() and should actually treat unix socket as trusted proxy and return the real client IP as specified in docs
Empty string is returned due to Context.RemoteIP() failing with nil, false when dealing with non-ip network listener
nil, false
The text was updated successfully, but these errors were encountered:
#2962 (comment)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
How to reproduce
Expectations
ClientIP() and should actually treat unix socket as trusted proxy and return the real client IP as specified in docs
Actual result
Empty string is returned due to Context.RemoteIP() failing with
nil, false
when dealing with non-ip network listenerEnvironment
The text was updated successfully, but these errors were encountered: