fix compile

This commit is contained in:
zhangxiaoyu.york 2024-09-04 21:26:55 +08:00
parent fa589ba60a
commit 8655c394b5
1 changed files with 1 additions and 0 deletions

View File

@ -102,6 +102,7 @@ static std::string string_join(std::vector<std::string> const& srcs,
static bool dns_resolve(std::string const& target, static bool dns_resolve(std::string const& target,
std::vector<std::string>& endpoints, bool ipv4 = true) { std::vector<std::string>& endpoints, bool ipv4 = true) {
std::vector<std::string> target_parts; std::vector<std::string> target_parts;
bool ipv6_url{false};
{ {
size_t rindex = target.rfind(':'); size_t rindex = target.rfind(':');
if (rindex == target.npos) { if (rindex == target.npos) {