diff options
author | erdgeist <> | 2007-07-22 00:40:10 +0000 |
---|---|---|
committer | erdgeist <> | 2007-07-22 00:40:10 +0000 |
commit | c0b00c0bf5b9414f93c76bb6daef9c01e2b49628 (patch) | |
tree | 9069c6cefb424cccfc32c44662112e2d68f27cb4 /trackerlogic.h | |
parent | 3f0a18ba080c4c72cea714ff216735c9e80ecd90 (diff) |
* fixed "nobody " -> "nobody" fuckup when getpwnam-ing
* implemented basic blacklisting:
** the file specified with -b <BLACKLIST> is read and added to a blacklist vector
** if an announce hits a torrent in that blacklist vector, add_peer_to_torrent fails
** sending a SIGHUP to the program forces it to reread the blacklists
** the server returns with a 500, which is not exactly nice but does the job for now
** an adaequat "failure reason:" should be delivered... TODO
Diffstat (limited to 'trackerlogic.h')
-rw-r--r-- | trackerlogic.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/trackerlogic.h b/trackerlogic.h index 4fa48eb..eb4d4f6 100644 --- a/trackerlogic.h +++ b/trackerlogic.h | |||
@@ -97,5 +97,9 @@ size_t return_memstat_for_tracker( char **reply ); | |||
97 | size_t return_changeset_for_tracker( char **reply ); | 97 | size_t return_changeset_for_tracker( char **reply ); |
98 | void clean_all_torrents( void ); | 98 | void clean_all_torrents( void ); |
99 | void remove_peer_from_torrent( ot_hash *hash, ot_peer *peer ); | 99 | void remove_peer_from_torrent( ot_hash *hash, ot_peer *peer ); |
100 | #ifdef WANT_BLACKLISTING | ||
101 | int blacklist_addentry( ot_hash *hash ); | ||
102 | void blacklist_reset( void ); | ||
103 | #endif | ||
100 | 104 | ||
101 | #endif | 105 | #endif |