Merge pull request #1 from Bisstocuz/Fix-#2814

Quick Fix #2814
This commit is contained in:
Notealot 2021-08-20 01:45:10 +08:00 committed by GitHub
commit bd77f6ad1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
gin.go
View File

@ -188,6 +188,7 @@ func New() *Engine {
engine.pool.New = func() interface{} {
return engine.allocateContext()
}
engine.trustedCIDRs, _ = engine.prepareTrustedCIDRs()
return engine
}