def process_request(self, request):
        try:
            real_ip = request.META['HTTP_X_FORWARDED_FOR']
        except __HOLE__:
            return None
        else:
            # HTTP_X_FORWARDED_FOR can be a comma-separated list of IPs.
            # Take just the first one.
            real_ip = real_ip.split(",")[0]
            request.META['REMOTE_ADDR'] = real_ip
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/middleware/http.py/SetRemoteAddrFromForwardedFor.process_request