diff --git a/httplib.h b/httplib.h index ccbc3ab..3972e38 100644 --- a/httplib.h +++ b/httplib.h @@ -6880,7 +6880,7 @@ inline void hosted_at(const std::string &hostname, auto dummy = -1; if (detail::get_ip_and_port(addr, sizeof(struct sockaddr_storage), ip, dummy)) { - addrs.push_back(ip); + addrs.emplace_back(std::move(ip)); } } }