update right ipv6 only

This commit is contained in:
orignal 2021-02-01 12:47:41 -05:00
parent fef4f13b8f
commit ea19802d3f
2 changed files with 4 additions and 1 deletions

View file

@ -449,6 +449,7 @@ namespace net
{
boost::asio::ip::address_v6::bytes_type bytes;
memcpy (bytes.data (), &sa->sin6_addr, 16);
freeifaddrs(addrs);
return boost::asio::ip::address_v6 (bytes);
}
}