summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2007-01-05 17:01:20 +0000
committererdgeist <>2007-01-05 17:01:20 +0000
commite7532408b6ffb91ee366075aba4ef2a9ab74e3ed (patch)
treea259ab8ff5cbc84a51046cd441b04fd8d4bbc758
parent9f63a7bd634d56e8deb3b6b05cd78e27bfb47a79 (diff)
black listing was the wrong way around
-rw-r--r--Makefile2
-rw-r--r--trackerlogic.c2
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 @@
1CC?=gcc 1CC?=gcc
2CFLAGS+=-I../libowfat -Wall -pipe -Os -DWANT_BLACKLIST -DWANT_CLOSED_TRACKER # -DWANT_IP_FROM_QUERY_STRING -g -ggdb 2CFLAGS+=-I../libowfat -Wall -pipe -Os # -DWANT_BLACKLIST -DWANT_CLOSED_TRACKER -DWANT_IP_FROM_QUERY_STRING -g -ggdb
3LDFLAGS+=-L../libowfat/ -lowfat -s -lm 3LDFLAGS+=-L../libowfat/ -lowfat -s -lm
4 4
5HEADERS=trackerlogic.h scan_urlencoded_query.h 5HEADERS=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