Skip to content
Snippets Groups Projects
Commit 14895c24 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by gerrit2
Browse files

ip_utils: fix IPv6 build

Refs #72857

Change-Id: I3b16831c649766272f5431cfa17018b153b35f3c
parent 42523f5c
No related branches found
No related tags found
No related merge requests found
...@@ -126,7 +126,7 @@ ip_utils::getLocalAddr(pj_uint16_t family) ...@@ -126,7 +126,7 @@ ip_utils::getLocalAddr(pj_uint16_t family)
#if HAVE_IPV6 #if HAVE_IPV6
RING_WARN("Could not get preferred address familly (%s)", (family == pj_AF_INET6()) ? "IPv6" : "IPv4"); RING_WARN("Could not get preferred address familly (%s)", (family == pj_AF_INET6()) ? "IPv6" : "IPv4");
family = (family == pj_AF_INET()) ? pj_AF_INET6() : pj_AF_INET(); family = (family == pj_AF_INET()) ? pj_AF_INET6() : pj_AF_INET();
status = pj_gethostip(family, ip_addr); status = pj_gethostip(family, ip_addr.pjPtr());
if (status == PJ_SUCCESS) return ip_addr; if (status == PJ_SUCCESS) return ip_addr;
#endif #endif
RING_ERR("Could not get local IP"); RING_ERR("Could not get local IP");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment