]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
black listing was the wrong way around
authorerdgeist <>
Fri, 5 Jan 2007 17:01:20 +0000 (17:01 +0000)
committererdgeist <>
Fri, 5 Jan 2007 17:01:20 +0000 (17:01 +0000)
Makefile
trackerlogic.c

index 4802c18301968ac6dd841facf0d7ec5516c523a0..ff2ba605e24d7bc0200c65e01ca1be32d11a01b0 100644 (file)
--- 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
index 32f008003e686aca488cd6629a43287b1b5c1030..9165fb7a8999f024b27d2f785d5b18a684622dd9 100644 (file)
@@ -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