fix: issue with capturing correct client ip

This commit is contained in:
rawleyIfowler
2022-03-03 13:21:26 -06:00
parent df4cc066f2
commit 4a5ad21b27
2 changed files with 2 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ func main() {
router.SetFuncMap(funcMap)
// This needs to change because of RCCTL in OpenBSD, not sure if you can use a ksh variable as path in Gin but i'll test
router.LoadHTMLGlob("templates/*.tmpl")
router.TrustedPlatform = "X-Real-Ip"
bootstrap.InitializeRoutes(router)
router.Run(":8080")
}