compat for lokinet 0.8.x

* don't send messages back that aren't expected
pull/1614/head
Jeff Becker 3 years ago
parent e0185bab09
commit f2e8b5547d
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -1164,6 +1164,9 @@ namespace llarp
Endpoint::SendAuthResult(
path::Path_ptr path, PathID_t replyPath, ConvoTag tag, AuthResult result)
{
// not applicable because we are not an exit or don't have an endpoint auth policy
if ((not m_state->m_ExitEnabled) or m_AuthPolicy == nullptr)
return;
ProtocolFrame f;
f.R = AuthResultCodeAsInt(result.code);
f.T = tag;

Loading…
Cancel
Save