summaryrefslogtreecommitdiff
path: root/node/Peer.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-09 15:44:13 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-11-09 15:44:13 -0800
commit2cc50bdb10c0a7849763ae1dfa37ca7707299a16 (patch)
treeda3da6516d7162e6aaf432f5303fde6ae5dac722 /node/Peer.cpp
parent94f4316a0ecb56f7e34422a7dfed73efb2bbe1a3 (diff)
downloadinfinitytier-2cc50bdb10c0a7849763ae1dfa37ca7707299a16.tar.gz
infinitytier-2cc50bdb10c0a7849763ae1dfa37ca7707299a16.zip
Try bringing back TTL escalation -- may help with Docker (IP-MASQ) type NAT
Diffstat (limited to 'node/Peer.cpp')
-rw-r--r--node/Peer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp
index 0e90b17d..de6f00c2 100644
--- a/node/Peer.cpp
+++ b/node/Peer.cpp
@@ -211,7 +211,7 @@ void Peer::received(
}
}
-void Peer::sendHELLO(const RuntimeEnvironment *RR,const InetAddress &localAddr,const InetAddress &atAddress,uint64_t now)
+void Peer::sendHELLO(const RuntimeEnvironment *RR,const InetAddress &localAddr,const InetAddress &atAddress,uint64_t now,unsigned int ttl)
{
// _lock not required here since _id is immutable and nothing else is accessed
@@ -228,7 +228,7 @@ void Peer::sendHELLO(const RuntimeEnvironment *RR,const InetAddress &localAddr,c
outp.armor(_key,false); // HELLO is sent in the clear
RR->antiRec->logOutgoingZT(outp.data(),outp.size());
- RR->node->putPacket(localAddr,atAddress,outp.data(),outp.size());
+ RR->node->putPacket(localAddr,atAddress,outp.data(),outp.size(),ttl);
}
bool Peer::doPingAndKeepalive(const RuntimeEnvironment *RR,uint64_t now,int inetAddressFamily)