-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Description
If not using app.Run
to run a gin server,
Line 344 in caf2802
err = engine.parseTrustedProxies() |
won't be executed. and will cause this line not executed
Line 786 in caf2802
if c.engine.trustedCIDRs != nil { |
Which will cause
Line 735 in caf2802
func (c *Context) ClientIP() string { |
I suggest moving this parseTrustedProxies
to Default
, so c.engine.trustedCIDRs
won't be nil.
related issues: #2632
Metadata
Metadata
Assignees
Labels
No labels