net: fix clang-15 build in resolveDNS()

net/NetUtil.cpp:65:23: error: no matching constructor for initialization of 'net::DNSCacheEntry'
    queries.push_back(DNSCacheEntry(addressToCheck, hostEntry, now));
                      ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Went wrong in commit 5be3ccc871 (cache DNS
results for 20 seconds, 2024-05-14), the rest of the code builds with
this toolchain.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Idc8ed4d88a7f955cf2cdc1e10ac9931823950126
pull/9027/head
Miklos Vajna 2024-05-15 09:00:09 +02:00 committed by Michael Meeks
parent d9168d447f
commit 39e4644822
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ Poco::Net::HostEntry resolveDNS(const std::string& addressToCheck)
// lookup and cache
auto hostEntry = Poco::Net::DNS::resolve(addressToCheck);
queries.push_back(DNSCacheEntry(addressToCheck, hostEntry, now));
queries.push_back(DNSCacheEntry{addressToCheck, hostEntry, now});
return hostEntry;
}