From 18b3fb5a467d19d904dc94b9deaec2467d2dc1cc Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 3 Oct 2026 19:25:39 -0400 Subject: [PATCH] set tunnel type to standard if unknown tunnel type --- libi2pd_client/BOB.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libi2pd_client/BOB.cpp b/libi2pd_client/BOB.cpp index 661916cb..98dd0d07 100644 --- a/libi2pd_client/BOB.cpp +++ b/libi2pd_client/BOB.cpp @@ -1011,7 +1011,10 @@ namespace client SendReplyOK ("tunnel type set to HTTP proxy"); } else + { + m_TunnelType = TunnelType::STANDARD; SendReplyError ("no tunnel type has been set"); + } } BOBCommandChannel::BOBCommandChannel (const std::string& address, uint16_t port): @@ -1128,11 +1131,7 @@ namespace client void BOBCommandChannel::RemoveProxy(const std::string& name) { - auto it = m_proxy.find (name); - if (it != m_proxy.end ()) - { - m_proxy.erase (it); - } + m_proxy.erase (name); } void BOBCommandChannel::Accept ()