view: fix ip empty when using Nginx.. it s because Nginx is a proxy and we cannot get ip from request directly.