Skip to content

Commit 6c95de8

Browse files
Merge pull request #305 from semantic-systems/develop
request remote addr
2 parents 667ec18 + 8e7a483 commit 6c95de8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ def log_agent():
284284
"user_email": session.get('current-user-email', ""),
285285
"session_id": session.get('gateway-session-id', ""),
286286
"visitor_id": "", #this will be updated later via ajax call
287-
"ip_address": request.environ.get('HTTP_X_REAL_IP', request.remote_addr),
287+
# "ip_address": request.environ.get('HTTP_X_REAL_IP', request.remote_addr),
288+
"ip_address": request.remote_addr,
288289
"user_agent": user_agent_string,
289290
"device_family": user_agent_parsed.get('device',{}).get('family',""),
290291
"device_brand": user_agent_parsed.get('device',{}).get('major',""),

0 commit comments

Comments
 (0)