INNER CODE UNIT · Go
configureTrustedProxies
kite-org/kite · app.go:70
func configureTrustedProxies(r *gin.Engine) {
var trustedProxies []string
if len(common.TrustedProxies) > 0 {
trustedProxies = common.TrustedProxies
}
if err := r.SetTrustedProxies(trustedProxies); err != nil {
klog.Fatalf("Failed to configure trusted proxies: %v", err)
}
}