diff options
author | erdgeist <> | 2010-04-09 10:15:51 +0000 |
---|---|---|
committer | erdgeist <> | 2010-04-09 10:15:51 +0000 |
commit | 85e6880233c114450f6a0cc9e655e8c14c8af80a (patch) | |
tree | c1ed7c868a57a792a2f51a211ff3000958ea7cb1 /ot_http.c | |
parent | fc48cbed012c2b7a4eaa8611c6cfb42628a5c622 (diff) |
Make opentracker's user runtime configurable. Also add more debug output to aid finding problems.
Diffstat (limited to 'ot_http.c')
-rw-r--r-- | ot_http.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -347,6 +347,7 @@ static ssize_t http_handle_scrape( const int64 sock, struct ot_workstruct *ws, c | |||
347 | unsigned long long numwants[201]; | 347 | unsigned long long numwants[201]; |
348 | #endif | 348 | #endif |
349 | 349 | ||
350 | #if defined( WANT_KEEPALIVE ) || defined( WANT_IP_FROM_PROXY ) | ||
350 | static char* http_header( char *data, size_t byte_count, char *header ) { | 351 | static char* http_header( char *data, size_t byte_count, char *header ) { |
351 | size_t i; | 352 | size_t i; |
352 | long sl = strlen( header ); | 353 | long sl = strlen( header ); |
@@ -359,6 +360,7 @@ static char* http_header( char *data, size_t byte_count, char *header ) { | |||
359 | } | 360 | } |
360 | return 0; | 361 | return 0; |
361 | } | 362 | } |
363 | #endif | ||
362 | 364 | ||
363 | static ot_keywords keywords_announce[] = { { "port", 1 }, { "left", 2 }, { "event", 3 }, { "numwant", 4 }, { "compact", 5 }, { "compact6", 5 }, { "info_hash", 6 }, | 365 | static ot_keywords keywords_announce[] = { { "port", 1 }, { "left", 2 }, { "event", 3 }, { "numwant", 4 }, { "compact", 5 }, { "compact6", 5 }, { "info_hash", 6 }, |
364 | #ifdef WANT_IP_FROM_QUERY_STRING | 366 | #ifdef WANT_IP_FROM_QUERY_STRING |