Browse Source

add SSU2 introducer if SSU2 only

pull/1786/head
orignal 2 years ago
parent
commit
a0419e4f34
  1. 2
      libi2pd/RouterContext.cpp

2
libi2pd/RouterContext.cpp

@ -466,6 +466,7 @@ namespace i2p
bool RouterContext::AddSSU2Introducer (const i2p::data::RouterInfo::Introducer& introducer, bool v4) bool RouterContext::AddSSU2Introducer (const i2p::data::RouterInfo::Introducer& introducer, bool v4)
{ {
if (!IsSSU2Only ()) return false
bool ret = m_RouterInfo.AddSSU2Introducer (introducer, v4); bool ret = m_RouterInfo.AddSSU2Introducer (introducer, v4);
if (ret) if (ret)
UpdateRouterInfo (); UpdateRouterInfo ();
@ -474,6 +475,7 @@ namespace i2p
void RouterContext::RemoveSSU2Introducer (const i2p::data::IdentHash& h, bool v4) void RouterContext::RemoveSSU2Introducer (const i2p::data::IdentHash& h, bool v4)
{ {
if (!IsSSU2Only ()) return;
if (m_RouterInfo.RemoveSSU2Introducer (h, v4)) if (m_RouterInfo.RemoveSSU2Introducer (h, v4))
UpdateRouterInfo (); UpdateRouterInfo ();
} }

Loading…
Cancel
Save