inbound sessions from CLIENTS should only have an elevated lifetime

pull/1693/head
Jeff Becker 3 years ago
parent caddeef2e8
commit 20bc338eba
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -331,7 +331,9 @@ namespace llarp
if (m_State == State::Ready || m_State == State::LinkIntro)
{
return now > m_LastRX
&& now - m_LastRX > (m_Inbound ? DefaultLinkSessionLifetime : SessionAliveTimeout);
&& now - m_LastRX
> (m_Inbound and not m_RemoteRC.IsPublicRouter() ? DefaultLinkSessionLifetime
: SessionAliveTimeout);
}
return now - m_CreatedAt >= LinkLayerConnectTimeout;
}

Loading…
Cancel
Save