use source path's intro as being able to reply on convo tags

pull/333/head
Jeff Becker 5 years ago
parent 06af3ca95b
commit 5dde4e6351
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -895,11 +895,14 @@ namespace llarp
}
bool
Endpoint::HandleDataMessage(__attribute__((unused)) const PathID_t& src,
ProtocolMessage* msg)
Endpoint::HandleDataMessage(const PathID_t& src, ProtocolMessage* msg)
{
auto path = GetPathByID(src);
if(path == nullptr)
return false;
msg->sender.UpdateAddr();
PutIntroFor(msg->tag, msg->introReply);
PutSenderFor(msg->tag, path->intro);
EnsureReplyPath(msg->sender);
return ProcessDataMessage(msg);
}

Loading…
Cancel
Save