mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-15 17:37:12 -05:00
Guard getLocalAddresses debug
This commit is contained in:
parent
9826c72969
commit
9d78bba3b8
@ -331,11 +331,13 @@ bool getLocalAddresses(std::list<sockaddr_storage> & addrs)
|
|||||||
freeifaddrs(ifsaddrs);
|
freeifaddrs(ifsaddrs);
|
||||||
#endif // WINDOWS_SYS
|
#endif // WINDOWS_SYS
|
||||||
|
|
||||||
|
#ifdef NET_DEBUG
|
||||||
std::list<sockaddr_storage>::iterator it;
|
std::list<sockaddr_storage>::iterator it;
|
||||||
std::cout << "getLocalAddresses(...) returning: <" ;
|
std::cout << "getLocalAddresses(...) returning: <" ;
|
||||||
for(it = addrs.begin(); it != addrs.end(); ++it)
|
for(it = addrs.begin(); it != addrs.end(); ++it)
|
||||||
std::cout << sockaddr_storage_iptostring(*it) << ", ";
|
std::cout << sockaddr_storage_iptostring(*it) << ", ";
|
||||||
std::cout << ">" << std::endl;
|
std::cout << ">" << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
return !addrs.empty();
|
return !addrs.empty();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user