mirror of
git://erdgeist.org/opentracker
synced 2025-02-17 06:31:30 +08:00
black listing was the wrong way around
This commit is contained in:
parent
9f63a7bd63
commit
e7532408b6
2
Makefile
2
Makefile
@ -1,5 +1,5 @@
|
|||||||
CC?=gcc
|
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
|
LDFLAGS+=-L../libowfat/ -lowfat -s -lm
|
||||||
|
|
||||||
HEADERS=trackerlogic.h scan_urlencoded_query.h
|
HEADERS=trackerlogic.h scan_urlencoded_query.h
|
||||||
|
@ -166,7 +166,7 @@ ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WANT_BLACKLIST
|
#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;
|
return OT_TORRENT_ON_BLACKLIST;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user