Also make sure to close the socket that exceeds your rate limit.
This commit is contained in:
parent
e1e1452d61
commit
c342fc930b
@ -868,6 +868,7 @@ main(int ac, char **av)
|
|||||||
options.connections_period, myaddr,
|
options.connections_period, myaddr,
|
||||||
get_sock_port(newsock, 1), ntop);
|
get_sock_port(newsock, 1), ntop);
|
||||||
free((void *)myaddr);
|
free((void *)myaddr);
|
||||||
|
close(newsock);
|
||||||
ratelim_exceeded = 0;
|
ratelim_exceeded = 0;
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user