diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | opentracker.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ CC?=gcc | |||
2 | FEATURES=#-DWANT_IP_FROM_QUERY_STRING -DWANT_BLACKLIST -DWANT_CLOSED_TRACKER | 2 | FEATURES=#-DWANT_IP_FROM_QUERY_STRING -DWANT_BLACKLIST -DWANT_CLOSED_TRACKER |
3 | #DEBUG_OPTS=-g -ggdb -pg # -fprofile-arcs -ftest-coverage | 3 | #DEBUG_OPTS=-g -ggdb -pg # -fprofile-arcs -ftest-coverage |
4 | DEBUG_OPTS=-s -Os | 4 | DEBUG_OPTS=-s -Os |
5 | CFLAGS+=-I../libowfat -Wall -pipe # -pedantic -ansi | 5 | CFLAGS+=-I../libowfat -Wall -pipe -m64 # -pedantic -ansi |
6 | LDFLAGS+=-L../libowfat/ -lowfat -lm | 6 | LDFLAGS+=-L../libowfat/ -lowfat -lm |
7 | 7 | ||
8 | HEADERS=trackerlogic.h scan_urlencoded_query.h | 8 | HEADERS=trackerlogic.h scan_urlencoded_query.h |
diff --git a/opentracker.c b/opentracker.c index 1490177..eaf0a20 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -290,7 +290,7 @@ e400_param: | |||
290 | 290 | ||
291 | if( OT_FLAG( &peer ) & PEER_FLAG_STOPPED ) { | 291 | if( OT_FLAG( &peer ) & PEER_FLAG_STOPPED ) { |
292 | remove_peer_from_torrent( hash, &peer ); | 292 | remove_peer_from_torrent( hash, &peer ); |
293 | memmove( static_scratch + SUCCESS_HTTP_HEADER_LENGTH, "d8:completei0e10:incompletei0e8:intervali600e5:peers0:e", reply_size = 55 ); | 293 | memmove( static_scratch + SUCCESS_HTTP_HEADER_LENGTH, "d8:completei0e10:incompletei0e8:intervali1800e5:peers0:e", reply_size = 55 ); |
294 | } else { | 294 | } else { |
295 | torrent = add_peer_to_torrent( hash, &peer ); | 295 | torrent = add_peer_to_torrent( hash, &peer ); |
296 | if( !torrent ) { | 296 | if( !torrent ) { |