61 auto iterator = pool.addressMap.find(domain);
62 auto inet = std::is_same<ADDRESS, sese::net::IPv4Address>::value ? AF_INET : AF_INET6;
63 if (iterator == pool.addressMap.end()) {
64 auto address = ADDRESS::lookUpAny(domain, inet, IPPROTO_IP);
65 if (
nullptr == address) {
69 auto ip = dynamicPointerCast<ADDRESS>(address);
70 pool.addressMap[domain] = ip;
74 return iterator->second;