mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-07 03:34:15 +00:00
add SSU2 introducer if SSU2 only
This commit is contained in:
parent
46a549c875
commit
a0419e4f34
@ -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…
x
Reference in New Issue
Block a user