fix bug in enum_net_interfaces

This commit is contained in:
arvidn 2016-02-29 18:14:10 -05:00
parent 021375c07f
commit aeb9f1c5dd
1 changed files with 1 additions and 0 deletions

View File

@ -599,6 +599,7 @@ namespace libtorrent
if (r == ERROR_BUFFER_OVERFLOW)
{
buffer.resize(buf_size);
adapter_addresses = reinterpret_cast<IP_ADAPTER_ADDRESSES*>(&buffer[0]);
r = GetAdaptersAddresses(AF_UNSPEC, GAA_FLAG_SKIP_MULTICAST | GAA_FLAG_SKIP_DNS_SERVER
| GAA_FLAG_SKIP_ANYCAST, NULL, adapter_addresses, &buf_size);
}