mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-12 18:38:07 +00:00
delete SSU V6 address
This commit is contained in:
parent
f0e6b414e8
commit
a53457e8c1
@ -578,6 +578,7 @@ namespace data
|
|||||||
{
|
{
|
||||||
if (IsV6 ())
|
if (IsV6 ())
|
||||||
{
|
{
|
||||||
|
// NTCP
|
||||||
m_SupportedTransports &= ~eNTCPV6;
|
m_SupportedTransports &= ~eNTCPV6;
|
||||||
for (size_t i = 0; i < m_Addresses.size (); i++)
|
for (size_t i = 0; i < m_Addresses.size (); i++)
|
||||||
{
|
{
|
||||||
@ -588,6 +589,18 @@ namespace data
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SSU
|
||||||
|
m_SupportedTransports &= ~eSSUV6;
|
||||||
|
for (size_t i = 0; i < m_Addresses.size (); i++)
|
||||||
|
{
|
||||||
|
if (m_Addresses[i].transportStyle == i2p::data::RouterInfo::eTransportSSU &&
|
||||||
|
m_Addresses[i].host.is_v6 ())
|
||||||
|
{
|
||||||
|
m_Addresses.erase (m_Addresses.begin () + i);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user