is_unspecified() is not always available. never mind.

This commit is contained in:
Miguel Freitas 2013-09-19 16:42:31 -03:00
parent 460be48e63
commit cbb5a524ce

View File

@ -406,9 +406,10 @@ void node_impl::announce(std::string const& trackerName, sha1_hash const& info_h
#endif
printf("node_impl::announce '%s' host: %s:%d myself=%d\n", trackerName.c_str(), addr.to_string().c_str(), listen_port, myself);
if( !addr.is_unspecified() ) {
// [MF] is_unspecified() is not always available. never mind.
//if( !addr.is_unspecified() ) {
add_peer( trackerName, info_hash, addr, listen_port, seed );
}
//}
// do not announce other peers, just add them to our local m_map.
if( myself ) {