diff options
| author | erdgeist <> | 2007-01-05 17:01:20 +0000 |
|---|---|---|
| committer | erdgeist <> | 2007-01-05 17:01:20 +0000 |
| commit | e7532408b6ffb91ee366075aba4ef2a9ab74e3ed (patch) | |
| tree | a259ab8ff5cbc84a51046cd441b04fd8d4bbc758 | |
| parent | 9f63a7bd634d56e8deb3b6b05cd78e27bfb47a79 (diff) | |
black listing was the wrong way around
| -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 | ||
