Fix for NO_STACK compilation bug due to new ZT core helper API

This commit is contained in:
Joseph Henry
2017-08-03 10:58:19 -07:00
parent 3977ed8679
commit 7fb03a7f6a

View File

@@ -143,7 +143,8 @@ namespace ZeroTier {
bool SocketTap::addIp(const InetAddress &ip)
{
#if defined(NO_STACK)
DEBUG_INFO("addIp (%s)", ip.toString().c_str());
char ipbuf[64];
DEBUG_INFO("addIp (%s)", ip.toString(ipbuf));
_ips.push_back(ip);
std::sort(_ips.begin(),_ips.end());
return true;