mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-28 15:34:14 +00:00
fix compiler warning "suggest explicit braces to avoid ambiguous "else"
[-Wparentheses]" in net.cpp
This commit is contained in:
parent
be8651dde7
commit
f8e4d43be7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user