mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-19 09:25:28 +00:00
Merge remote-tracking branch 'origin/stable' into debian/sid
This commit is contained in:
commit
0b1f85a1bd
@ -195,8 +195,16 @@ namespace llarp
|
||||
OutboundContext::HandlePathBuilt(path::Path_ptr p)
|
||||
{
|
||||
path::Builder::HandlePathBuilt(p);
|
||||
p->SetDataHandler(util::memFn(&OutboundContext::HandleHiddenServiceFrame, this));
|
||||
p->SetDropHandler(util::memFn(&OutboundContext::HandleDataDrop, this));
|
||||
p->SetDataHandler([self = weak_from_this()](auto path, auto frame) {
|
||||
if (auto ptr = self.lock())
|
||||
return ptr->HandleHiddenServiceFrame(path, frame);
|
||||
return false;
|
||||
});
|
||||
p->SetDropHandler([self = weak_from_this()](auto path, auto id, auto seqno) {
|
||||
if (auto ptr = self.lock())
|
||||
return ptr->HandleDataDrop(path, id, seqno);
|
||||
return false;
|
||||
});
|
||||
if (markedBad)
|
||||
{
|
||||
// ignore new path if we are marked dead
|
||||
|
Loading…
Reference in New Issue
Block a user