mirror of https://github.com/aria2/aria2
Code cleanup
parent
b6fd4366fe
commit
b340c25164
|
@ -1143,8 +1143,7 @@ void getInterfaceAddress
|
||||||
} else {
|
} else {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(util::streq(iface.begin(), iface.end(),
|
if(strcmp(iface.c_str(), ifa->ifa_name) == 0) {
|
||||||
ifa->ifa_name, ifa->ifa_name+strlen(ifa->ifa_name))) {
|
|
||||||
socklen_t bindAddrLen =
|
socklen_t bindAddrLen =
|
||||||
iffamily == AF_INET ? sizeof(sockaddr_in) : sizeof(sockaddr_in6);
|
iffamily == AF_INET ? sizeof(sockaddr_in) : sizeof(sockaddr_in6);
|
||||||
sockaddr_union bindAddr;
|
sockaddr_union bindAddr;
|
||||||
|
|
Loading…
Reference in New Issue