Browse Source

is_unspecified() is not always available. never mind.

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
cbb5a524ce
  1. 5
      libtorrent/src/kademlia/node.cpp

5
libtorrent/src/kademlia/node.cpp

@ -406,9 +406,10 @@ void node_impl::announce(std::string const& trackerName, sha1_hash const& info_h @@ -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 ) {

Loading…
Cancel
Save