Fix "remote_ip" in HTTP/HTTPS, with PROXY protocol

remove unused var and clean minor things