Fix for IP detection when HTTP_X_FORWARDED_FOR or other multi-ip server variable is involved.