Browse Source

delete SSU V6 address

pull/106/head
orignal 10 years ago
parent
commit
a53457e8c1
  1. 13
      RouterInfo.cpp

13
RouterInfo.cpp

@ -578,6 +578,7 @@ namespace data @@ -578,6 +578,7 @@ namespace data
{
if (IsV6 ())
{
// NTCP
m_SupportedTransports &= ~eNTCPV6;
for (size_t i = 0; i < m_Addresses.size (); i++)
{
@ -588,6 +589,18 @@ namespace data @@ -588,6 +589,18 @@ namespace data
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…
Cancel
Save