diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2012-05-01 01:44:59 +0200 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2012-05-01 11:40:08 +0200 |
commit | f8e4d43be7a66f205f5b623f39e88f9bad02dedb (patch) | |
tree | 8733cdebcc96912ebbba809de93a0c75551296f0 /src | |
parent | be8651dde7b59e50e8c443da71c706667803d06d (diff) |
fix compiler warning "suggest explicit braces to avoid ambiguous "else"
[-Wparentheses]" in net.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/net.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp index d218dcfb5d..92b4a3173f 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -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 |