summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c
index aefdc46..ae33e62 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -532,8 +532,9 @@ ANNOUNCE_WORKAROUND:
532 ot_overall_tcp_successfulannounces++; 532 ot_overall_tcp_successfulannounces++;
533 break; 533 break;
534 case 9: 534 case 9:
535 if( byte_diff( data, 9, "announce " ) ) HTTPERROR_404; 535 if( !byte_diff( data, 9, "announce " ) ) goto ANNOUNCE_WORKAROUND;
536 goto ANNOUNCE_WORKAROUND; 536 if( !byte_diff( data, 9, "announce/" ) ) goto ANNOUNCE_WORKAROUND;
537 HTTPERROR_404;
537 case 10: 538 case 10:
538 if( byte_diff( data, 10, "scrape.php" ) ) HTTPERROR_404; 539 if( byte_diff( data, 10, "scrape.php" ) ) HTTPERROR_404;
539 goto SCRAPE_WORKAROUND; 540 goto SCRAPE_WORKAROUND;