-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New issue
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
parseTrustedProxies not executed #2791
Comments
What means not using |
using http.ListenAndServe(":8080", router)
or
s.ListenAndServe() won't execute |
@xcaptain Lines 384 to 388 in 3116a2d
|
Ok, thanks, but calling |
@xcaptain Construct function Line 177 in caf2802
|
If not using
app.Run
to run a gin server,gin/gin.go
Line 344 in caf2802
won't be executed. and will cause this line not executed
gin/context.go
Line 786 in caf2802
Which will cause
gin/context.go
Line 735 in caf2802
I suggest moving this
parseTrustedProxies
toDefault
, soc.engine.trustedCIDRs
won't be nil.related issues: #2632
The text was updated successfully, but these errors were encountered: