Skip to content

Commit

Permalink
Print remote addr during debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-z committed Oct 30, 2023
1 parent 3d57884 commit 39b332e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
@app.route("/tunnel", methods=["POST"])
def tunnel():
logging.debug(f"Request headers: {request.headers}")
logging.debug(f"Remote addr: {request.remote_addr}")
try:
envelope = flask.request.data
piece = envelope.split(b"\n")[0].decode("utf-8")
Expand Down

0 comments on commit 39b332e

Please sign in to comment.