diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-02-22 22:45:01 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-02-22 22:45:01 +0900 |
| commit | 663cfec9f6eab4660ae369fecaa42b74aa7785ca (patch) | |
| tree | 2fea0f1ecd8876829e7a95790bdc98e8ea74dd2f /src | |
| parent | 075ea06ad78509bf23023711c37adec2faf1a3ce (diff) | |
Fixed the bug that aria2 does not listen on address given in --interface.
Diffstat (limited to 'src')
| -rw-r--r-- | src/SocketCore.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SocketCore.cc b/src/SocketCore.cc index 5a8109eb..7430e0a1 100644 --- a/src/SocketCore.cc +++ b/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; |
