Skip to content

Commit

Permalink
fix: the trusted proxies should support ipv6 address by default (#3033)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed May 28, 2022
1 parent f1e9428 commit 87811a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gin.go
Expand Up @@ -195,7 +195,7 @@ func New() *Engine {
trees: make(methodTrees, 0, 9),
delims: render.Delims{Left: "{{", Right: "}}"},
secureJSONPrefix: "while(1);",
trustedProxies: []string{"0.0.0.0/0"},
trustedProxies: []string{"0.0.0.0/0", "::/0"},
trustedCIDRs: defaultTrustedCIDRs,
}
engine.RouterGroup.engine = engine
Expand Down

0 comments on commit 87811a9

Please sign in to comment.