Skip to content

Commit

Permalink
set trusted proxies to nil
Browse files Browse the repository at this point in the history
  • Loading branch information
aayush-rockx committed Dec 20, 2023
1 parent 1b6dd70 commit 60e3818
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/messenger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ func main() {
})

r := gin.Default()
r.SetTrustedProxies(nil)

r.Use(logger.GinLogger(log))

InitializeAPIEndpoints(r, m, worker)
Expand Down
2 changes: 2 additions & 0 deletions cmd/node/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ func main() {

// register api routes
r := gin.Default()
r.SetTrustedProxies(nil)

r.Use(logger.GinLogger(log))

r.GET("/ping", ping.HandlePing)
Expand Down

0 comments on commit 60e3818

Please sign in to comment.