From 27fabb143c41397d030dcd01b3ba2560e9d7f4bf Mon Sep 17 00:00:00 2001 From: Notealot <714804968@qq.com> Date: Fri, 20 Aug 2021 01:37:51 +0800 Subject: [PATCH] Quick Fix #2814 --- gin.go | 1 + 1 file changed, 1 insertion(+) 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 }