2010-08-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Added error message when given address and resolved address do not
	match in SocketCore::bind().
	* src/SocketCore.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-08-25 12:32:29 +00:00
parent 26bf5ab5e2
commit bfed6e5e31
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2010-08-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added error message when given address and resolved address do not
match in SocketCore::bind().
* src/SocketCore.cc
2010-08-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added --bt-tracker and --bt-exclude-tracker option. In

View File

@ -282,7 +282,7 @@ void SocketCore::bind
continue;
}
if(addrp && strcmp(host, addrp) != 0) {
// TODO we should assign something to error?
error = "Given address and resolved address do not match.";
continue;
}
sock_t fd = bindTo(addrp, port, family, sockType_, flags, error);