forked from premiere/premiere-libtorrent
windows fix
This commit is contained in:
parent
c7e6c04705
commit
010d3b6e75
|
@ -43,7 +43,7 @@ namespace libtorrent
|
|||
{
|
||||
address interface_address;
|
||||
address netmask;
|
||||
char name[32];
|
||||
char name[64];
|
||||
};
|
||||
|
||||
struct ip_route
|
||||
|
@ -51,7 +51,7 @@ namespace libtorrent
|
|||
address destination;
|
||||
address netmask;
|
||||
address gateway;
|
||||
char name[32];
|
||||
char name[64];
|
||||
};
|
||||
|
||||
// returns a list of the configured IP interfaces
|
||||
|
|
|
@ -558,7 +558,7 @@ namespace libtorrent
|
|||
r.source = address::from_string(adapter->IpAddressList.IpAddress.String, ec);
|
||||
r.gateway = address::from_string(adapter->GatewayList.IpAddress.String, ec);
|
||||
r.netmask = address::from_string(adapter->IpAddressList.IpMask.String, ec);
|
||||
strcpy(r.name, adapter->AdapterName);
|
||||
strncpy(r.name, adapter->AdapterName, sizeof(ip_route::name));
|
||||
|
||||
if (ec)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue