commit 6a0ca2f284ebdb3b31bd274b2ff371f56958a384
parent b1926e650f6e1bae565183026ce388393ebbd4f0
Author: Shiimoe <SameulFrost@tuta.io>
Date: Sun, 13 Sep 2020 22:22:23 +0100
ip logger lol
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server.py b/server.py
@@ -33,7 +33,7 @@ def postcomment():
name = request.form['name']
comment = request.form['comment']
date = datetime.now()
- ip = request.remote_addr
+ ip = request.environ.get('HTTP_X_REAL_IP')
comments = read_comments()
comments.append({