diff options
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 |