diff --git a/gin.go b/gin.go index 6ab2be66..ff15a499 100644 --- a/gin.go +++ b/gin.go @@ -188,6 +188,7 @@ func New() *Engine { engine.pool.New = func() interface{} { return engine.allocateContext() } + engine.trustedCIDRs, _ = engine.prepareTrustedCIDRs() return engine }