diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-07-06 11:45:22 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-07-06 11:45:22 -0700 |
| commit | f18158a52d28c14352018a68d328f41fcdb7966f (patch) | |
| tree | 27aa7b824abaa316e7109550fdeaa09a0ced714f /node/Topology.cpp | |
| parent | 84748aab5145ace693b98aad2c7984871c491418 (diff) | |
| download | infinitytier-f18158a52d28c14352018a68d328f41fcdb7966f.tar.gz infinitytier-f18158a52d28c14352018a68d328f41fcdb7966f.zip | |
.
Diffstat (limited to 'node/Topology.cpp')
| -rw-r--r-- | node/Topology.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/node/Topology.cpp b/node/Topology.cpp index 09a1a895..d4632f43 100644 --- a/node/Topology.cpp +++ b/node/Topology.cpp @@ -125,10 +125,11 @@ SharedPtr<Peer> Topology::getPeer(void *tPtr,const Address &zta) return *ap; } + /* try { char buf[ZT_PEER_MAX_SERIALIZED_STATE_SIZE]; uint64_t idbuf[2]; idbuf[0] = zta.toInt(); idbuf[1] = 0; - int len = RR->node->stateObjectGet(tPtr,ZT_STATE_OBJECT_PEER_STATE,idbuf,buf,(unsigned int)sizeof(buf)); + int len = RR->node->stateObjectGet(tPtr,ZT_STATE_OBJECT_PEER,idbuf,buf,(unsigned int)sizeof(buf)); if (len > 0) { Mutex::Lock _l(_peers_m); SharedPtr<Peer> &ap = _peers[zta]; @@ -140,6 +141,7 @@ SharedPtr<Peer> Topology::getPeer(void *tPtr,const Address &zta) return ap; } } catch ( ... ) {} // ignore invalid identities or other strage failures + */ return SharedPtr<Peer>(); } |
