]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
now accept more classes of announce fuckups
authorerdgeist <>
Sun, 21 Oct 2007 04:37:37 +0000 (04:37 +0000)
committererdgeist <>
Sun, 21 Oct 2007 04:37:37 +0000 (04:37 +0000)
opentracker.c

index ae33e62e01c9ae245bf6f25d519533d30d9d5c87..a4c630482fa121354a2b05943e085f6bbaea05f8 100644 (file)
@@ -532,8 +532,7 @@ ANNOUNCE_WORKAROUND:
     ot_overall_tcp_successfulannounces++;
     break;
   case 9:
-    if( !byte_diff( data, 9, "announce " ) ) goto ANNOUNCE_WORKAROUND;
-    if( !byte_diff( data, 9, "announce/" ) ) goto ANNOUNCE_WORKAROUND;
+    if( !byte_diff( data, 8, "announce" ) ) goto ANNOUNCE_WORKAROUND;
     HTTPERROR_404;
   case 10:
     if( byte_diff( data, 10, "scrape.php" ) ) HTTPERROR_404;