net: require lookup functions to specify all arguments

To make it clear where DNS resolves are happening
This commit is contained in:
Cory Fields
2016-04-12 20:23:16 -04:00
committed by lateminer
parent e577b5c7e1
commit 52147e1b80
2 changed files with 5 additions and 5 deletions

View File

@@ -1436,7 +1436,7 @@ void ThreadDNSAddressSeed()
} else {
vector<CNetAddr> vIPs;
vector<CAddress> vAdd;
if (LookupHost(seed.host.c_str(), vIPs))
if (LookupHost(seed.host.c_str(), vIPs, 0, true))
{
BOOST_FOREACH(const CNetAddr& ip, vIPs)
{
@@ -1882,7 +1882,7 @@ void static Discover(boost::thread_group& threadGroup)
if (gethostname(pszHostName, sizeof(pszHostName)) != SOCKET_ERROR)
{
vector<CNetAddr> vaddr;
if (LookupHost(pszHostName, vaddr))
if (LookupHost(pszHostName, vaddr, 0, true))
{
BOOST_FOREACH (const CNetAddr &addr, vaddr)
{