Fix types of remote_{addr,ip}