hax to make it work.

pull/608/head
Jeff Becker 5 years ago
parent cd85bd2c2d
commit a4e90ee769
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -232,8 +232,7 @@ namespace llarp
if(s && s->IsEstablished() && isOutbound && !got)
{
const RouterContact rc = s->GetRemoteRC();
if(got || router->IsBootstrapNode(rc.pubkey)
|| exclude.count(rc.pubkey))
if(got || exclude.count(rc.pubkey))
return;
cur = rc;
got = true;

@ -361,17 +361,9 @@ namespace llarp
// queue buffer
auto &q = outboundMessageQueue[remote];
if(q.size() < MaxPendingSendQueueSize)
{
buf.sz = buf.cur - buf.base;
q.emplace(buf.sz);
memcpy(q.back().data(), buf.base, buf.sz);
}
else
{
LogWarn("tried to queue a message to ", remote,
" but the queue is full so we drop it like it's hawt");
}
buf.sz = buf.cur - buf.base;
q.emplace(buf.sz);
memcpy(q.back().data(), buf.base, buf.sz);
RouterContact remoteRC;
// we don't have an open session to that router right now
if(nodedb()->Get(remote, remoteRC))

Loading…
Cancel
Save