From c0b00c0bf5b9414f93c76bb6daef9c01e2b49628 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sun, 22 Jul 2007 00:40:10 +0000 Subject: * fixed "nobody " -> "nobody" fuckup when getpwnam-ing * implemented basic blacklisting: ** the file specified with -b 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 --- trackerlogic.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'trackerlogic.h') 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 ); size_t return_changeset_for_tracker( char **reply ); void clean_all_torrents( void ); void remove_peer_from_torrent( ot_hash *hash, ot_peer *peer ); +#ifdef WANT_BLACKLISTING +int blacklist_addentry( ot_hash *hash ); +void blacklist_reset( void ); +#endif #endif -- cgit v1.2.3