diff options
| author | Joseph Henry <josephjah@gmail.com> | 2019-03-01 13:28:00 -0800 |
|---|---|---|
| committer | Joseph Henry <josephjah@gmail.com> | 2019-03-01 13:28:00 -0800 |
| commit | 270debb3fc39c3f1f6a3f6fbc2c5fb6183182c8f (patch) | |
| tree | 78e668704969edc8e03b23a58f1ad15b4cf63e78 /node/Peer.cpp | |
| parent | 59a0a25f35d43b4cad90d13e52f736efcea8e180 (diff) | |
| download | infinitytier-270debb3fc39c3f1f6a3f6fbc2c5fb6183182c8f.tar.gz infinitytier-270debb3fc39c3f1f6a3f6fbc2c5fb6183182c8f.zip | |
#ifdef'd out multipath/QoS statistics buffers allocations for ZT_PROTOCOL_VERSION<10
Diffstat (limited to 'node/Peer.cpp')
| -rw-r--r-- | node/Peer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp index aecbd3a0..9f8c5bbc 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -78,7 +78,9 @@ Peer::Peer(const RuntimeEnvironment *renv,const Identity &myIdentity,const Ident Utils::getSecureRandom(&_freeRandomByte, 1); if (!myIdentity.agree(peerIdentity,_key,ZT_PEER_SECRET_KEY_LENGTH)) throw ZT_EXCEPTION_INVALID_ARGUMENT; +#if ZT_PROTO_VERSION >= 10 _pathChoiceHist = new RingBuffer<int>(ZT_MULTIPATH_PROPORTION_WIN_SZ); +#endif } void Peer::received( |
