Browse Source

Make attempts to access to unauthorized torrents more verbose.

dynamic-accesslists
erdgeist 16 years ago
parent
commit
fa10063d15
  1. 5
      trackerlogic.c

5
trackerlogic.c

@ -80,6 +80,11 @@ size_t add_peer_to_torrent_and_return_peers( ot_hash hash, ot_peer *peer, PROTO_
if( !accesslist_hashisvalid( hash ) ) { if( !accesslist_hashisvalid( hash ) ) {
mutex_bucket_unlock_by_hash( hash, 0 ); mutex_bucket_unlock_by_hash( hash, 0 );
if( proto == FLAG_TCP ) {
const char invalid_hash[] = "d14:failure reason63:Requested download is not authorized for use with this tracker.e";
memcpy( reply, invalid_hash, strlen( invalid_hash ) );
return strlen( invalid_hash );
}
return 0; return 0;
} }

Loading…
Cancel
Save