back-port pavel's fix to ip_interface.name

This commit is contained in:
arvidn 2017-02-13 08:09:01 -05:00
parent cbd1c26a11
commit 1300204ff1
1 changed files with 1 additions and 0 deletions

View File

@ -698,6 +698,7 @@ namespace libtorrent
for (;i != udp::resolver_iterator(); ++i)
{
iface.interface_address = i->endpoint().address();
iface.name[0] = '\0';
iface.mtu = 1500;
if (iface.interface_address.is_v4())
iface.netmask = address_v4::netmask(iface.interface_address.to_v4());