|
@@ -276,8 +276,7 @@ got004(char *from, char *msg)
|
|
|
connect_bursting = now;
|
|
connect_bursting = now;
|
|
|
msgburst = SERVER_CONNECT_BURST_RATE;
|
|
msgburst = SERVER_CONNECT_BURST_RATE;
|
|
|
msgrate = 200;
|
|
msgrate = 200;
|
|
|
- flood_time.sec = last_time.sec = now - 100;
|
|
|
|
|
- flood_time.usec = last_time.usec = 0;
|
|
|
|
|
|
|
+ reset_flood();
|
|
|
putlog(LOG_DEBUG, "*", "Server allows connect bursting, bursting for %d seconds", SERVER_CONNECT_BURST_TIME);
|
|
putlog(LOG_DEBUG, "*", "Server allows connect bursting, bursting for %d seconds", SERVER_CONNECT_BURST_TIME);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -2021,8 +2020,7 @@ static void server_dns_callback(int id, void *client_data, const char *host, bd:
|
|
|
first_ctcp_check = 0;
|
|
first_ctcp_check = 0;
|
|
|
|
|
|
|
|
// Just connecting, set last queue time to the past.
|
|
// Just connecting, set last queue time to the past.
|
|
|
- flood_time.sec = last_time.sec = now - 100;
|
|
|
|
|
- flood_time.usec = last_time.usec = 0;
|
|
|
|
|
|
|
+ reset_flood();
|
|
|
end_burstmode();
|
|
end_burstmode();
|
|
|
use_flood_count = 0;
|
|
use_flood_count = 0;
|
|
|
real_msgburst = msgburst;
|
|
real_msgburst = msgburst;
|