Skip to content

Commit

Permalink
Adjusting IP
Browse files Browse the repository at this point in the history
  • Loading branch information
aymene69 committed May 1, 2024
1 parent 595f656 commit 467f843
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 467f843

Please sign in to comment.