mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
fix compiler warning "suggest explicit braces to avoid ambiguous "else"
[-Wparentheses]" in net.cpp
This commit is contained in:
@@ -1585,12 +1585,16 @@ void StartNode(void* parg)
|
||||
{
|
||||
vector<CNetAddr> vaddr;
|
||||
if (LookupHost(pszHostName, vaddr))
|
||||
{
|
||||
BOOST_FOREACH (const CNetAddr &addr, vaddr)
|
||||
{
|
||||
if (!addr.IsLocal())
|
||||
{
|
||||
addrLocalHost.SetIP(addr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
// Get local host ip
|
||||
|
||||
Reference in New Issue
Block a user