X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_socket.c;h=6828da7a8ce23b9213f9f00fd43f388400aa7448;hb=06943e828c45d8f4f1da6dc51907499f92957a39;hp=ab3c17e02a110b41d9044cdc25c15c3c74ca4a0b;hpb=796c14b75c9e8066b4f68f6ce7cdaddd97c46a87;p=tinc diff --git a/src/net_socket.c b/src/net_socket.c index ab3c17e0..6828da7a 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -594,7 +594,6 @@ void handle_new_meta_connection(void *data, int flags) { // Check if we get many connections from the same host static sockaddr_t prev_sa; - static time_t prev_time; static int tarpit = -1; if(tarpit >= 0) { @@ -621,7 +620,6 @@ void handle_new_meta_connection(void *data, int flags) { } memcpy(&prev_sa, &sa, sizeof sa); - prev_time = now.tv_sec; // Check if we get many connections from different hosts