From 467f8432cb2ce16408814ff6e6e7e5b28e63efa5 Mon Sep 17 00:00:00 2001 From: Aymene69 Date: Wed, 1 May 2024 20:48:25 +0200 Subject: [PATCH] Adjusting IP --- source/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/main.py b/source/main.py index a1f660d..11eea27 100644 --- a/source/main.py +++ b/source/main.py @@ -79,7 +79,8 @@ async def root(): @app.get("/configure") @app.get("/{config}/configure") async def configure(request: Request): - print(request.client.host) + print(request.headers.get("X-Real-IP")) + print(request.headers.get("X-Forwarded-For")) return templates.TemplateResponse( "index.html", {"request": request, "isCommunityVersion": COMMUNITY_VERSION},