diff --git a/apps/common/utils/common.py b/apps/common/utils/common.py index c198a0ad2..b6bff2a8b 100644 --- a/apps/common/utils/common.py +++ b/apps/common/utils/common.py @@ -153,10 +153,6 @@ def is_uuid(seq): def get_request_ip(request): - x_real_ip = request.META.get('HTTP_X_REAL_IP', '') - if x_real_ip: - return x_real_ip - x_forwarded_for = request.META.get('HTTP_X_FORWARDED_FOR', '').split(',') if x_forwarded_for and x_forwarded_for[0]: login_ip = x_forwarded_for[0]