From 85e6880233c114450f6a0cc9e655e8c14c8af80a Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Fri, 9 Apr 2010 10:15:51 +0000 Subject: Make opentracker's user runtime configurable. Also add more debug output to aid finding problems. --- ot_http.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ot_http.c') diff --git a/ot_http.c b/ot_http.c index 22fb68f..e364809 100644 --- a/ot_http.c +++ b/ot_http.c @@ -347,6 +347,7 @@ static ssize_t http_handle_scrape( const int64 sock, struct ot_workstruct *ws, c unsigned long long numwants[201]; #endif +#if defined( WANT_KEEPALIVE ) || defined( WANT_IP_FROM_PROXY ) static char* http_header( char *data, size_t byte_count, char *header ) { size_t i; long sl = strlen( header ); @@ -359,6 +360,7 @@ static char* http_header( char *data, size_t byte_count, char *header ) { } return 0; } +#endif static ot_keywords keywords_announce[] = { { "port", 1 }, { "left", 2 }, { "event", 3 }, { "numwant", 4 }, { "compact", 5 }, { "compact6", 5 }, { "info_hash", 6 }, #ifdef WANT_IP_FROM_QUERY_STRING -- cgit v1.2.3