forked from mirror/gin
fix: the trusted proxies should support ipv6 address by default (#3033)
This commit is contained in:
parent
f1e942889a
commit
87811a97bd
2
gin.go
2
gin.go
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue