isTrustedProxy() — gin Function Reference
Architecture documentation for the isTrustedProxy() function in gin.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD f3faef48_2c81_36e4_bab9_c2c06066e309["isTrustedProxy()"] 3a2c3baf_05dd_1c1d_c903_494ce21d8dff["isUnsafeTrustedProxies()"] 3a2c3baf_05dd_1c1d_c903_494ce21d8dff -->|calls| f3faef48_2c81_36e4_bab9_c2c06066e309 14fd4b3a_88ba_72fd_e1f4_e06462aef916["validateHeader()"] 14fd4b3a_88ba_72fd_e1f4_e06462aef916 -->|calls| f3faef48_2c81_36e4_bab9_c2c06066e309 style f3faef48_2c81_36e4_bab9_c2c06066e309 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
gin.go lines 469–479
func (engine *Engine) isTrustedProxy(ip net.IP) bool {
if engine.trustedCIDRs == nil {
return false
}
for _, cidr := range engine.trustedCIDRs {
if cidr.Contains(ip) {
return true
}
}
return false
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isTrustedProxy() do?
isTrustedProxy() is a function in the gin codebase.
What calls isTrustedProxy()?
isTrustedProxy() is called by 2 function(s): isUnsafeTrustedProxies, validateHeader.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free