From f2e8b5547d731e2dd6275745ac4f2a0df6729b88 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 1 May 2021 08:58:50 -0400 Subject: [PATCH] compat for lokinet 0.8.x * don't send messages back that aren't expected --- llarp/service/endpoint.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llarp/service/endpoint.cpp b/llarp/service/endpoint.cpp index 32e9bfd76..1b2107918 100644 --- a/llarp/service/endpoint.cpp +++ b/llarp/service/endpoint.cpp @@ -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;