mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-08 01:10:40 +00:00
give priority to ipv6
This commit is contained in:
parent
06b0a50462
commit
5c20751937
@ -256,6 +256,9 @@ namespace data
|
|||||||
}
|
}
|
||||||
if (isValidAddress)
|
if (isValidAddress)
|
||||||
{
|
{
|
||||||
|
if (supportedTransports & eNTCPV6) // ipv6 NTCP ?
|
||||||
|
addresses->push_front(std::make_shared<Address>(address)); // ipv6 has priority over ipv4
|
||||||
|
else
|
||||||
addresses->push_back(std::make_shared<Address>(address));
|
addresses->push_back(std::make_shared<Address>(address));
|
||||||
m_SupportedTransports |= supportedTransports;
|
m_SupportedTransports |= supportedTransports;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user