|
|
@ -1585,12 +1585,16 @@ void StartNode(void* parg) |
|
|
|
{ |
|
|
|
{ |
|
|
|
vector<CNetAddr> vaddr; |
|
|
|
vector<CNetAddr> vaddr; |
|
|
|
if (LookupHost(pszHostName, vaddr)) |
|
|
|
if (LookupHost(pszHostName, vaddr)) |
|
|
|
|
|
|
|
{ |
|
|
|
BOOST_FOREACH (const CNetAddr &addr, vaddr) |
|
|
|
BOOST_FOREACH (const CNetAddr &addr, vaddr) |
|
|
|
|
|
|
|
{ |
|
|
|
if (!addr.IsLocal()) |
|
|
|
if (!addr.IsLocal()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
addrLocalHost.SetIP(addr); |
|
|
|
addrLocalHost.SetIP(addr); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
#else |
|
|
|
#else |
|
|
|
// Get local host ip
|
|
|
|
// Get local host ip
|
|
|
|