X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_socket.c;h=40671db0183e061dc01b309b1b36832fd94e5a4e;hb=2c6b2d70e6640f39563ad7bb0aa0ba87f883848c;hp=24a9804ed239be9800801d4afd53afe0f5d22b5b;hpb=b18d5b572992debb04a7851e43143711319243a0;p=tinc diff --git a/src/net_socket.c b/src/net_socket.c index 24a9804e..40671db0 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -704,8 +704,8 @@ void handle_new_meta_connection(void *data, int flags) { static sockaddr_t prev_sa; if(!sockaddrcmp_noport(&sa, &prev_sa)) { - static int samehost_burst; - static int samehost_burst_time; + static time_t samehost_burst; + static time_t samehost_burst_time; if(now.tv_sec - samehost_burst_time > samehost_burst) { samehost_burst = 0; @@ -726,8 +726,8 @@ void handle_new_meta_connection(void *data, int flags) { // Check if we get many connections from different hosts - static int connection_burst; - static int connection_burst_time; + static time_t connection_burst; + static time_t connection_burst_time; if(now.tv_sec - connection_burst_time > connection_burst) { connection_burst = 0;