mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-17 21:26:04 +00:00
Merge remote-tracking branch 'origin' into openssl
This commit is contained in:
commit
ff6a79bca3
@ -771,7 +771,11 @@ namespace data
|
|||||||
|
|
||||||
std::shared_ptr<const RouterInfo::Address> RouterInfo::GetAddress (TransportStyle s, bool v4only, bool v6only) const
|
std::shared_ptr<const RouterInfo::Address> RouterInfo::GetAddress (TransportStyle s, bool v4only, bool v6only) const
|
||||||
{
|
{
|
||||||
|
#if (BOOST_VERSION >= 105300)
|
||||||
|
auto addresses = boost::atomic_load (&m_Addresses);
|
||||||
|
#else
|
||||||
auto addresses = m_Addresses;
|
auto addresses = m_Addresses;
|
||||||
|
#endif
|
||||||
for (const auto& address : *addresses)
|
for (const auto& address : *addresses)
|
||||||
{
|
{
|
||||||
if (address->transportStyle == s)
|
if (address->transportStyle == s)
|
||||||
|
Loading…
Reference in New Issue
Block a user