diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-01 12:00:25 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-01 12:00:25 -0800 |
| commit | 5dbebc513ad67bb65c41c42a9c761c085309564f (patch) | |
| tree | 1b954201bb5d51b380c8aa9ac7bd3148d4d09a7b /node/Network.cpp | |
| parent | 6d5a3cd2e2fe196325cb3ab60dfc368901395977 (diff) | |
| download | infinitytier-5dbebc513ad67bb65c41c42a9c761c085309564f.tar.gz infinitytier-5dbebc513ad67bb65c41c42a9c761c085309564f.zip | |
Minor send path refactor to make packet I/O work on clusters if they are members of networks. Also fix a crash if compiled in cluster mode but no cluster is enabled.
Diffstat (limited to 'node/Network.cpp')
| -rw-r--r-- | node/Network.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Network.cpp b/node/Network.cpp index 320dcf39..c5855418 100644 --- a/node/Network.cpp +++ b/node/Network.cpp @@ -974,7 +974,7 @@ uint64_t Network::handleConfigChunk(const uint64_t packetId,const Address &sourc } #ifdef ZT_ENABLE_CLUSTER - if (source) + if ((source)&&(RR->cluster)) RR->cluster->broadcastNetworkConfigChunk(chunk.field(start,chunk.size() - start),chunk.size() - start); #endif @@ -1007,7 +1007,7 @@ uint64_t Network::handleConfigChunk(const uint64_t packetId,const Address &sourc } #ifdef ZT_ENABLE_CLUSTER - if (source) + if ((source)&&(RR->cluster)) RR->cluster->broadcastNetworkConfigChunk(chunk.field(start,chunk.size() - start),chunk.size() - start); #endif } else { |
