mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:28:09 +02:00
do not attempt to hole punch an upstream node
This commit is contained in:
parent
4688fe4c39
commit
880157695a
1 changed files with 4 additions and 2 deletions
|
@ -713,8 +713,10 @@ void NodeList::pingPunchForInactiveNode(const SharedNodePointer& node) {
|
||||||
|
|
||||||
void NodeList::startNodeHolePunch(const SharedNodePointer& node) {
|
void NodeList::startNodeHolePunch(const SharedNodePointer& node) {
|
||||||
|
|
||||||
// we don't hole punch to replicants, since it is assumed that we have a direct line to them
|
// we don't hole punch to downstream servers, since it is assumed that we have a direct line to them
|
||||||
if (!NodeType::isDownstream(node->getType())) {
|
// we also don't hole punch to relayed upstream nodes, since we do not communicate directly with them
|
||||||
|
|
||||||
|
if (!NodeType::isDownstream(node->getType()) && !node->isUpstream()) {
|
||||||
// connect to the correct signal on this node so we know when to ping it
|
// connect to the correct signal on this node so we know when to ping it
|
||||||
connect(node.data(), &Node::pingTimerTimeout, this, &NodeList::handleNodePingTimeout);
|
connect(node.data(), &Node::pingTimerTimeout, this, &NodeList::handleNodePingTimeout);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue