Add configuration for trusted proxies (#141)

This commit is contained in:
Daniel Barton
2022-10-05 08:11:07 +08:00
committed by GitHub
parent b20bf6deab
commit e98d249cf7
5 changed files with 10 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ func getServerWebsocket(c *gin.Context) {
ctx, cancel := context.WithCancel(c.Request.Context())
defer cancel()
handler, err := websocket.GetHandler(s, c.Writer, c.Request)
handler, err := websocket.GetHandler(s, c.Writer, c.Request, c)
if err != nil {
NewServerError(err, s).Abort(c)
return