From 663cfec9f6eab4660ae369fecaa42b74aa7785ca Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 22 Feb 2012 22:45:01 +0900 Subject: Fixed the bug that aria2 does not listen on address given in --interface. --- src/SocketCore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/SocketCore.cc') 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; -- cgit