|
|
@ -533,7 +533,7 @@ namespace i2p |
|
|
|
// delete previous introducers
|
|
|
|
// delete previous introducers
|
|
|
|
auto& addresses = m_RouterInfo.GetAddresses (); |
|
|
|
auto& addresses = m_RouterInfo.GetAddresses (); |
|
|
|
for (auto& addr : addresses) |
|
|
|
for (auto& addr : addresses) |
|
|
|
if (addr->ssu && ((v4 && addr->IsV4 ()) || (v6 && addr->IsV6 ()))) |
|
|
|
if (addr->ssu && !addr->IsSSU2 () && ((v4 && addr->IsV4 ()) || (v6 && addr->IsV6 ()))) |
|
|
|
{ |
|
|
|
{ |
|
|
|
addr->published = false; |
|
|
|
addr->published = false; |
|
|
|
addr->caps &= ~i2p::data::RouterInfo::eSSUIntroducer; // can't be introducer
|
|
|
|
addr->caps &= ~i2p::data::RouterInfo::eSSUIntroducer; // can't be introducer
|
|
|
@ -565,7 +565,7 @@ namespace i2p |
|
|
|
// delete previous introducers
|
|
|
|
// delete previous introducers
|
|
|
|
auto& addresses = m_RouterInfo.GetAddresses (); |
|
|
|
auto& addresses = m_RouterInfo.GetAddresses (); |
|
|
|
for (auto& addr : addresses) |
|
|
|
for (auto& addr : addresses) |
|
|
|
if (addr->ssu && ((v4 && addr->IsV4 ()) || (v6 && addr->IsV6 ()))) |
|
|
|
if (addr->ssu && !addr->IsSSU2 () && ((v4 && addr->IsV4 ()) || (v6 && addr->IsV6 ()))) |
|
|
|
{ |
|
|
|
{ |
|
|
|
addr->published = true; |
|
|
|
addr->published = true; |
|
|
|
addr->caps |= i2p::data::RouterInfo::eSSUIntroducer; |
|
|
|
addr->caps |= i2p::data::RouterInfo::eSSUIntroducer; |
|
|
|