Added /debug

This commit is contained in:
it00147
2025-11-27 17:00:43 +00:00
parent a2c4278285
commit 14ec67b0d0

10
app.py
View File

@@ -255,3 +255,13 @@ def index():
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8000)
@app.route("/debug")
def debug():
from flask import jsonify
return jsonify(
remote_addr=request.remote_addr,
x_forwarded_for=request.headers.get("X-Forwarded-For"),
x_real_ip=request.headers.get("X-Real-IP"),
all_headers=dict(request.headers),
)