Browse Source

set the interval to 1800 for announce (last change was only for scrape)

master
Denis Ahrens 15 years ago
parent
commit
6d049b33d3
  1. 2
      Makefile
  2. 2
      opentracker.c

2
Makefile

@ -2,7 +2,7 @@ CC?=gcc
FEATURES=#-DWANT_IP_FROM_QUERY_STRING -DWANT_BLACKLIST -DWANT_CLOSED_TRACKER
#DEBUG_OPTS=-g -ggdb -pg # -fprofile-arcs -ftest-coverage
DEBUG_OPTS=-s -Os
CFLAGS+=-I../libowfat -Wall -pipe # -pedantic -ansi
CFLAGS+=-I../libowfat -Wall -pipe -m64 # -pedantic -ansi
LDFLAGS+=-L../libowfat/ -lowfat -lm
HEADERS=trackerlogic.h scan_urlencoded_query.h

2
opentracker.c

@ -290,7 +290,7 @@ e400_param:
if( OT_FLAG( &peer ) & PEER_FLAG_STOPPED ) {
remove_peer_from_torrent( hash, &peer );
memmove( static_scratch + SUCCESS_HTTP_HEADER_LENGTH, "d8:completei0e10:incompletei0e8:intervali600e5:peers0:e", reply_size = 55 );
memmove( static_scratch + SUCCESS_HTTP_HEADER_LENGTH, "d8:completei0e10:incompletei0e8:intervali1800e5:peers0:e", reply_size = 55 );
} else {
torrent = add_peer_to_torrent( hash, &peer );
if( !torrent ) {

Loading…
Cancel
Save