[fix] change host to hostname to be more in line with url.format in node