diff --git a/httplib.h b/httplib.h index 43cf2b9244..b1ed7aca33 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)); } } }