summaryrefslogtreecommitdiff
path: root/ot_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_http.c')
-rw-r--r--ot_http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ot_http.c b/ot_http.c
index 3ccdb84..bc3aef0 100644
--- a/ot_http.c
+++ b/ot_http.c
@@ -247,7 +247,7 @@ static ssize_t http_handle_fullscrape( const int64 sock, struct ot_workstruct *w
247 stats_issue_event( EVENT_FULLSCRAPE_REQUEST, 0, (uintptr_t)cookie->ip ); 247 stats_issue_event( EVENT_FULLSCRAPE_REQUEST, 0, (uintptr_t)cookie->ip );
248 248
249#ifdef _DEBUG_HTTPERROR 249#ifdef _DEBUG_HTTPERROR
250write( 2, ws->debugbuf, G_DEBUGBUF_SIZE ); 250 fprintf( stderr, "%s", ws->debugbuf );
251#endif 251#endif
252 252
253 /* Pass this task to the worker thread */ 253 /* Pass this task to the worker thread */
@@ -299,7 +299,7 @@ static ssize_t http_handle_scrape( const int64 sock, struct ot_workstruct *ws, c
299 return ws->reply_size; 299 return ws->reply_size;
300} 300}
301 301
302static ot_keywords keywords_announce[] = { { "port", 1 }, { "left", 2 }, { "event", 3 }, { "numwant", 4 }, { "compact", 5 }, { "info_hash", 6 }, 302static ot_keywords keywords_announce[] = { { "port", 1 }, { "left", 2 }, { "event", 3 }, { "numwant", 4 }, { "compact", 5 }, { "compact6", 5 }, { "info_hash", 6 },
303#ifdef WANT_IP_FROM_QUERY_STRING 303#ifdef WANT_IP_FROM_QUERY_STRING
304{ "ip", 7 }, 304{ "ip", 7 },
305#endif 305#endif