|
|
@ -595,7 +595,7 @@ static void handle_udp4( int64 serversocket ) {
|
|
|
|
r = socket_recv4( serversocket, static_inbuf, 8192, remoteip, &remoteport);
|
|
|
|
r = socket_recv4( serversocket, static_inbuf, 8192, remoteip, &remoteport);
|
|
|
|
|
|
|
|
|
|
|
|
ot_overall_udp_connections++;
|
|
|
|
ot_overall_udp_connections++;
|
|
|
|
|
|
|
|
|
|
|
|
/* Minimum udp tracker packet size, also catches error */
|
|
|
|
/* Minimum udp tracker packet size, also catches error */
|
|
|
|
if( r < 16 )
|
|
|
|
if( r < 16 )
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -654,6 +654,10 @@ static void handle_udp4( int64 serversocket ) {
|
|
|
|
ot_overall_udp_successfulannounces++;
|
|
|
|
ot_overall_udp_successfulannounces++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 2: /* This is a scrape action */
|
|
|
|
|
|
|
|
ot_overall_udp_connections--; // subtract again because we don't answer scrapes but it is also not an error
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|