} else {
if (net_get_preferred_ipv6_address(net_info->ProfileName, ip_address) != NET_ERR_NONE) {
CONNECTION_LOG(CONNECTION_ERROR, "Failed to get preferred ipv6 address");
- *ip_address = __profile_convert_ip_to_string(&net_info->IpAddr,
+ *ip_address = __profile_convert_ip_to_string(&net_info->IpAddr6,
address_family);
}
}