Fixed the bug that aria2 does not listen on address given in --interface.

pull/12/head
Tatsuhiro Tsujikawa 2012-02-22 22:45:01 +09:00
parent 075ea06ad7
commit 663cfec9f6
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ void SocketCore::bind
error = "Given address and resolved address do not match.";
continue;
}
sock_t fd = bindTo(addrp, port, family, sockType_, flags, error);
sock_t fd = bindTo(host, port, family, sockType_, flags, error);
if(fd != (sock_t)-1) {
sockfd_ = fd;
break;