mirror of
https://github.com/pushbits/server.git
synced 2025-08-01 15:49:09 +02:00
Add support for setting trusted proxies
This commit is contained in:
parent
7a37199d79
commit
4d015eb7be
4 changed files with 22 additions and 5 deletions
|
@ -82,7 +82,10 @@ func main() {
|
|||
log.L.Fatal(err)
|
||||
}
|
||||
|
||||
engine := router.Create(c.Debug, cm, db, dp)
|
||||
engine, err := router.Create(c.Debug, c.HTTP.TrustedProxies, cm, db, dp)
|
||||
if err != nil {
|
||||
log.L.Fatal(err)
|
||||
}
|
||||
|
||||
err = runner.Run(engine, c.HTTP.ListenAddress, c.HTTP.Port)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue