- os << "ResolvProtoResponse(ret=" << unsigned(rpr.ret) << ", ";
- std::copy(rpr.ips.begin(), rpr.ips.end(),
+ os << "ResolvProtoResponse(ret=" << unsigned(rpr.ret)
+ << ", ttl=" << rpr.ttl;
+ if (rpr.ips.empty())
+ return os << ")";
+ os << ", ";
+ std::copy(rpr.ips.begin(), rpr.ips.end() - 1,