def process_request(self, request):
        try:
            real_ip = request.META['HTTP_X_FORWARDED_FOR']
        except __HOLE__:
            return None
        else:  # pragma: no cover
            # HTTP_X_FORWARDED_FOR can be a comma-separated list of IPs. The
            # client's IP will be the first one.
            real_ip = real_ip.split(",")[0].strip()
            request.META['REMOTE_ADDR'] = real_ip
dataset/ETHPy150Open erikr/happinesspackets/happinesspackets/utils/middleware.py/SetRemoteAddrFromForwardedFor.process_request