back-port pavel's fix to ip_interface.name
This commit is contained in:
parent
cbd1c26a11
commit
1300204ff1
|
@ -698,6 +698,7 @@ namespace libtorrent
|
||||||
for (;i != udp::resolver_iterator(); ++i)
|
for (;i != udp::resolver_iterator(); ++i)
|
||||||
{
|
{
|
||||||
iface.interface_address = i->endpoint().address();
|
iface.interface_address = i->endpoint().address();
|
||||||
|
iface.name[0] = '\0';
|
||||||
iface.mtu = 1500;
|
iface.mtu = 1500;
|
||||||
if (iface.interface_address.is_v4())
|
if (iface.interface_address.is_v4())
|
||||||
iface.netmask = address_v4::netmask(iface.interface_address.to_v4());
|
iface.netmask = address_v4::netmask(iface.interface_address.to_v4());
|
||||||
|
|
Loading…
Reference in New Issue