mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-13 04:38:28 +00:00
move findNode method back
Signed-off-by: Grant Limberg <glimberg@gmail.com>
This commit is contained in:
@ -122,7 +122,18 @@ namespace {
|
||||
}
|
||||
|
||||
typedef std::map<uint64_t, JniRef*> NodeMap;
|
||||
static NodeMap nodeMap;
|
||||
static NodeMap nodeMap;
|
||||
|
||||
ZT1_Node* findNode(uint64_t nodeId)
|
||||
{
|
||||
NodeMap::iterator found = nodeMap.find(nodeId);
|
||||
if(found != nodeMap.end())
|
||||
{
|
||||
JniRef *ref = found->second;
|
||||
return ref->node;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user