mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
add SSU2 introducer if SSU2 only
This commit is contained in:
parent
46a549c875
commit
a0419e4f34
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue