From 1fce733ea0037d67fd07d6738bed92da3ae7c81a Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 23 Oct 2007 00:30:46 +0000 Subject: Accept clients that forget to spell announce at all... --- opentracker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentracker.c b/opentracker.c index 68d7a2e..41df0ee 100644 --- a/opentracker.c +++ b/opentracker.c @@ -555,7 +555,7 @@ ANNOUNCE_WORKAROUND: ot_overall_tcp_connections+ot_overall_udp_connections, ot_overall_tcp_successfulannounces+ot_overall_udp_successfulannounces, (int)t, (int)(t / 3600), (ot_overall_tcp_connections+ot_overall_udp_connections) / ( (unsigned int)t ? (unsigned int)t : 1 ) ); break; default: - if( *data == 'a' ) goto ANNOUNCE_WORKAROUND; + if( ( *data == 'a' ) || ( *data == '?' ) ) goto ANNOUNCE_WORKAROUND; if( !byte_diff( data, 2, "sc" ) ) goto SCRAPE_WORKAROUND; HTTPERROR_404; } -- cgit v1.2.3