diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | trackerlogic.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | CC?=gcc | 1 | CC?=gcc |
2 | CFLAGS+=-I../libowfat -Wall -pipe -Os -DWANT_BLACKLIST -DWANT_CLOSED_TRACKER # -DWANT_IP_FROM_QUERY_STRING -g -ggdb | 2 | CFLAGS+=-I../libowfat -Wall -pipe -Os # -DWANT_BLACKLIST -DWANT_CLOSED_TRACKER -DWANT_IP_FROM_QUERY_STRING -g -ggdb |
3 | LDFLAGS+=-L../libowfat/ -lowfat -s -lm | 3 | LDFLAGS+=-L../libowfat/ -lowfat -s -lm |
4 | 4 | ||
5 | HEADERS=trackerlogic.h scan_urlencoded_query.h | 5 | 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 ) { | |||
166 | #endif | 166 | #endif |
167 | 167 | ||
168 | #ifdef WANT_BLACKLIST | 168 | #ifdef WANT_BLACKLIST |
169 | if( g_check_blacklist && stat( fn - 1, &dummy_sb ) ) | 169 | if( g_check_blacklist && !stat( fn - 1, &dummy_sb ) ) |
170 | return OT_TORRENT_ON_BLACKLIST; | 170 | return OT_TORRENT_ON_BLACKLIST; |
171 | #endif | 171 | #endif |
172 | 172 | ||