summaryrefslogtreecommitdiff
path: root/node/Switch.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-12-15 10:30:40 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-12-15 10:30:40 -0800
commit82aa3f59d6f60995719cc3d857b4fa3bb33df19d (patch)
tree8e11c5e65697fcb0309d5d36319f50aa3ec67fe6 /node/Switch.cpp
parent04d6b037334ae2da8523a1c83d9b02c89e9f1da1 (diff)
downloadinfinitytier-82aa3f59d6f60995719cc3d857b4fa3bb33df19d.tar.gz
infinitytier-82aa3f59d6f60995719cc3d857b4fa3bb33df19d.zip
Fix bug in ECHO handling (OK was invalid!), and use ECHO on newer peers for path confirmation. Also get rid of path confirmation circuit breaker since this causes issues with some peers and should be done more intelligently anyway.
Diffstat (limited to 'node/Switch.cpp')
-rw-r--r--node/Switch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp
index bf0d1aff..a06de17e 100644
--- a/node/Switch.cpp
+++ b/node/Switch.cpp
@@ -96,7 +96,7 @@ void Switch::onRemotePacket(const InetAddress &localAddr,const InetAddress &from
if ((now - _lastBeaconResponse) >= 2500) { // limit rate of responses
_lastBeaconResponse = now;
Packet outp(peer->address(),RR->identity.address(),Packet::VERB_NOP);
- outp.armor(peer->key(),false);
+ outp.armor(peer->key(),true);
RR->node->putPacket(localAddr,fromAddr,outp.data(),outp.size());
}
}