diff --git a/internal/bootstrap/app_bootstrap.go b/internal/bootstrap/app_bootstrap.go index d1f3373..3416ff2 100644 --- a/internal/bootstrap/app_bootstrap.go +++ b/internal/bootstrap/app_bootstrap.go @@ -191,7 +191,11 @@ func (app *BootstrapApp) Setup() error { engine := gin.New() if len(app.config.TrustedProxies) > 0 { - engine.SetTrustedProxies(strings.Split(app.config.TrustedProxies, ",")) + err := engine.SetTrustedProxies(strings.Split(app.config.TrustedProxies, ",")) + + if err != nil { + return fmt.Errorf("failed to set trusted proxies: %w", err) + } } if config.Version != "development" {