Browse Source

give priority to ipv6

pull/731/head
orignal 8 years ago
parent
commit
5c20751937
  1. 5
      RouterInfo.cpp

5
RouterInfo.cpp

@ -256,7 +256,10 @@ namespace data
} }
if (isValidAddress) if (isValidAddress)
{ {
addresses->push_back(std::make_shared<Address>(address)); 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));
m_SupportedTransports |= supportedTransports; m_SupportedTransports |= supportedTransports;
} }
} }

Loading…
Cancel
Save