From d70cbea546afeef587be636b7d23bb0aa139ba68 Mon Sep 17 00:00:00 2001 From: Stavros Date: Fri, 19 Sep 2025 14:53:10 +0300 Subject: [PATCH] chore: handle trusted proxies config error --- internal/bootstrap/app_bootstrap.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" {