Commit f01c359f authored by Adrien Béraud's avatar Adrien Béraud Committed by Guillaume Roguez

ringaccount: get IPv4 addresses from OpenDHT

Bumps opendht to 0.5.1

Tuleap: #225
Change-Id: If51a2873b50671c3b764fd882baf13c01caef46b
parent c9fa85bb
# OPENDHT
OPENDHT_VERSION := 184dc17aa8cf57a9a3e1b26ff2794b2cab4597ba
OPENDHT_VERSION := e97355ed49d36e108cfb2811eaeae5bff83a930f
OPENDHT_URL := https://github.com/savoirfairelinux/opendht/archive/$(OPENDHT_VERSION).tar.gz
PKGS += opendht
......
......@@ -117,7 +117,7 @@ RingAccount::createIceTransport(Args... args)
// We need a public address in case of NAT'ed network
// Trying to use one discovered by DHT service
if (getPublishedAddress().empty()) {
const auto& addresses = dht_.getPublicAddress();
const auto& addresses = dht_.getPublicAddress(AF_INET);
if (addresses.size())
setPublishedAddress(IpAddr{addresses[0].first});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment