Added /debug
This commit is contained in:
10
app.py
10
app.py
@@ -255,3 +255,13 @@ def index():
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run(host="0.0.0.0", port=8000)
|
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),
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user