From e7532408b6ffb91ee366075aba4ef2a9ab74e3ed Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Fri, 5 Jan 2007 17:01:20 +0000 Subject: [PATCH] black listing was the wrong way around --- Makefile | 2 +- trackerlogic.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4802c18..ff2ba60 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC?=gcc -CFLAGS+=-I../libowfat -Wall -pipe -Os -DWANT_BLACKLIST -DWANT_CLOSED_TRACKER # -DWANT_IP_FROM_QUERY_STRING -g -ggdb +CFLAGS+=-I../libowfat -Wall -pipe -Os # -DWANT_BLACKLIST -DWANT_CLOSED_TRACKER -DWANT_IP_FROM_QUERY_STRING -g -ggdb LDFLAGS+=-L../libowfat/ -lowfat -s -lm HEADERS=trackerlogic.h scan_urlencoded_query.h diff --git a/trackerlogic.c b/trackerlogic.c index 32f0080..9165fb7 100644 --- a/trackerlogic.c +++ b/trackerlogic.c @@ -166,7 +166,7 @@ ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ) { #endif #ifdef WANT_BLACKLIST - if( g_check_blacklist && stat( fn - 1, &dummy_sb ) ) + if( g_check_blacklist && !stat( fn - 1, &dummy_sb ) ) return OT_TORRENT_ON_BLACKLIST; #endif