There was an error while loading. Please reload this page.
1 parent 50105e4 commit d70cbeaCopy full SHA for d70cbea
1 file changed
internal/bootstrap/app_bootstrap.go
@@ -191,7 +191,11 @@ func (app *BootstrapApp) Setup() error {
191
engine := gin.New()
192
193
if len(app.config.TrustedProxies) > 0 {
194
- engine.SetTrustedProxies(strings.Split(app.config.TrustedProxies, ","))
+ err := engine.SetTrustedProxies(strings.Split(app.config.TrustedProxies, ","))
195
+
196
+ if err != nil {
197
+ return fmt.Errorf("failed to set trusted proxies: %w", err)
198
+ }
199
}
200
201
if config.Version != "development" {
0 commit comments