mirror of https://github.com/aria2/aria2
Fixed the bug which prevents --bt-lpd-interface from working.
Fixes bug#3520125pull/16/merge
parent
a0912d9e4a
commit
d16071d108
|
@ -237,7 +237,8 @@ void BtSetup::setup(std::vector<Command*>& commands,
|
||||||
for(std::vector<std::pair<sockaddr_union, socklen_t> >::const_iterator
|
for(std::vector<std::pair<sockaddr_union, socklen_t> >::const_iterator
|
||||||
i = ifAddrs.begin(), eoi = ifAddrs.end(); i != eoi; ++i) {
|
i = ifAddrs.begin(), eoi = ifAddrs.end(); i != eoi; ++i) {
|
||||||
char host[NI_MAXHOST];
|
char host[NI_MAXHOST];
|
||||||
if(inetNtop(AF_INET, &(*i).first.in, host, sizeof(host)) == 0 &&
|
if(inetNtop(AF_INET, &(*i).first.in.sin_addr, host,
|
||||||
|
sizeof(host)) == 0 &&
|
||||||
receiver->init(host)) {
|
receiver->init(host)) {
|
||||||
initialized = true;
|
initialized = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue