diff options
author | erdgeist <> | 2009-07-04 20:14:03 +0000 |
---|---|---|
committer | erdgeist <> | 2009-07-04 20:14:03 +0000 |
commit | fa10063d15dce3ae1940a3a43e22225bc7e0fed7 (patch) | |
tree | e0f80a40bdad13cf9a5c6012d5a932fdebd5f88c | |
parent | dfa173b071a19c59201486398afc00b45dbe9cc1 (diff) |
Make attempts to access to unauthorized torrents more verbose.
-rw-r--r-- | trackerlogic.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index 2f75b15..37cca03 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
@@ -80,6 +80,11 @@ size_t add_peer_to_torrent_and_return_peers( ot_hash hash, ot_peer *peer, PROTO_ | |||
80 | 80 | ||
81 | if( !accesslist_hashisvalid( hash ) ) { | 81 | if( !accesslist_hashisvalid( hash ) ) { |
82 | mutex_bucket_unlock_by_hash( hash, 0 ); | 82 | mutex_bucket_unlock_by_hash( hash, 0 ); |
83 | if( proto == FLAG_TCP ) { | ||
84 | const char invalid_hash[] = "d14:failure reason63:Requested download is not authorized for use with this tracker.e"; | ||
85 | memcpy( reply, invalid_hash, strlen( invalid_hash ) ); | ||
86 | return strlen( invalid_hash ); | ||
87 | } | ||
83 | return 0; | 88 | return 0; |
84 | } | 89 | } |
85 | 90 | ||