log drop events more

pull/1658/head
Jeff Becker 3 years ago
parent 00257567c2
commit 40a189a9a3
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -203,7 +203,10 @@ namespace llarp
OutboundContext::AsyncGenIntro(const llarp_buffer_t& payload, ProtocolType t)
{
if (generatedIntro)
{
LogWarn(Name(), " dropping packet as we are not fully handshaked right now");
return;
}
if (remoteIntro.router.IsZero())
{
LogWarn(Name(), " dropping intro frame we have no intro ready yet");

@ -152,7 +152,13 @@ namespace llarp
// have we generated the initial intro but not sent it yet? bail here so we don't cause
// bullshittery
if (IntroGenerated() and not IntroSent())
{
LogWarn(
m_PathSet->Name(),
" we have generated an intial handshake but have not sent it yet so we drop a packet "
"to prevent bullshittery");
return;
}
const auto maybe = m_Endpoint->MaybeGetAuthInfoForEndpoint(remoteIdent.Addr());
if (maybe.has_value())
{

Loading…
Cancel
Save