From 4c0166e364309d7d20a11c43026b0ebd8e0b8fdb Mon Sep 17 00:00:00 2001 From: nyne Date: Sun, 18 May 2025 17:24:23 +0800 Subject: [PATCH] Fix proxy config. --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 6450cf9..6ecb71c 100644 --- a/main.go +++ b/main.go @@ -15,8 +15,8 @@ func main() { debugMode := os.Getenv("DEBUG_MODE") != "false" app := fiber.New(fiber.Config{ - BodyLimit: 8 * 1024 * 1024, - TrustProxy: true, + BodyLimit: 8 * 1024 * 1024, + ProxyHeader: "X-Real-IP", }) app.Use(logger.New(logger.Config{