intro handover

pull/15/head
Jeff Becker 6 years ago
parent 9ee7275a02
commit 1471e90fb5
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -200,6 +200,7 @@ namespace llarp
TunEndpoint::HandleDataMessage(const PathID_t &src,
service::ProtocolMessage *msg)
{
PutIntroFor(msg->tag, msg->introReply);
EnsureReplyPath(msg->sender);
service::Address addr;
msg->sender.CalculateAddress(addr.data());

@ -963,8 +963,9 @@ namespace llarp
{
if(remoteIntro.expiresAt < intro.expiresAt && intro.router == orig)
{
shifted = orig != intro.router;
remoteIntro = intro;
shifted = true;
break;
}
}
}

Loading…
Cancel
Save