--wtf; prevent roots from TCP fallback

This commit is contained in:
Adam Ierymenko 2015-10-27 12:21:57 -07:00
parent a1a0ee4edb
commit 0ffbd05c0e
2 changed files with 4 additions and 3 deletions

View file

@ -867,6 +867,7 @@ public:
{
#ifdef ZT_ENABLE_CLUSTER
if (sock == _clusterMessageSocket) {
_lastDirectReceiveFromGlobal = OSUtils::now();
_node->clusterHandleIncomingMessage(data,len);
return;
}
@ -1030,7 +1031,7 @@ public:
if (from) {
ZT_ResultCode rc = _node->processWirePacket(
OSUtils::now(),
0,
&ZT_SOCKADDR_NULL,
reinterpret_cast<struct sockaddr_storage *>(&from),
data,
plen,