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

pull/320/head
Jeff Becker 5 years ago
parent ee95c1ed0c
commit 262000570b
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

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

Loading…
Cancel
Save