summaryrefslogtreecommitdiff
path: root/node/Switch.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-24 16:16:39 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-24 16:16:39 -0700
commitc476285bd638da01e0297c76951609c70f4ab3cf (patch)
treeff7d99720b453f9742dc1a4f4e023f75cc69a499 /node/Switch.cpp
parent63e8ad4cc3b91cf0de89012da1ef78deee1a566a (diff)
downloadinfinitytier-c476285bd638da01e0297c76951609c70f4ab3cf.tar.gz
infinitytier-c476285bd638da01e0297c76951609c70f4ab3cf.zip
Harden PUSH_DIRECT_PATHS and simplify things by only doing it on receive when hops>0 and trust has been established.
Diffstat (limited to 'node/Switch.cpp')
-rw-r--r--node/Switch.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp
index f6e4d1ab..546c9157 100644
--- a/node/Switch.cpp
+++ b/node/Switch.cpp
@@ -761,11 +761,6 @@ bool Switch::_trySend(const Packet &packet,bool encrypt)
return false;
}
- if (relay) {
- peer->pushDirectPaths(viaPath->localAddress(),viaPath->address(),now,false);
- viaPath->sent(now);
- }
-
Packet tmp(packet);
unsigned int chunkSize = std::min(tmp.size(),(unsigned int)ZT_UDP_DEFAULT_PAYLOAD_MTU);