浏览代码

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

Tatsuhiro Tsujikawa 13 年之前
父节点
当前提交
663cfec9f6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/SocketCore.cc

+ 1 - 1
src/SocketCore.cc

@@ -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;