mirror of
git://erdgeist.org/opentracker
synced 2025-01-27 07:06:45 +00:00
Make attempts to access to unauthorized torrents more verbose.
This commit is contained in:
parent
dfa173b071
commit
fa10063d15
@ -80,6 +80,11 @@ size_t add_peer_to_torrent_and_return_peers( ot_hash hash, ot_peer *peer, PROTO_
|
||||
|
||||
if( !accesslist_hashisvalid( hash ) ) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user