Fix address hostname check.