From 141d1f1e4eb04798730723e11e7cf990515675af Mon Sep 17 00:00:00 2001 From: frekky Date: Tue, 10 Nov 2015 20:04:14 +0800 Subject: [PATCH] Removed unused tun_user::disabled flag --- src/user.c | 2 +- src/user.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/user.c b/src/user.c index a5509a2..6c4b69f 100644 --- a/src/user.c +++ b/src/user.c @@ -122,7 +122,7 @@ user_sending(int user) int user_active(int i) { - return users[i].active && !users[i].disabled && difftime(time(NULL), users[i].last_pkt) < 60; + return users[i].active && difftime(time(NULL), users[i].last_pkt) < 60; } int diff --git a/src/user.h b/src/user.h index 165c7b1..1b19f38 100644 --- a/src/user.h +++ b/src/user.h @@ -29,14 +29,12 @@ struct tun_user { int active; int authenticated; int authenticated_raw; - int disabled; time_t last_pkt; struct timeval dns_timeout; int seed; in_addr_t tun_ip; struct sockaddr_storage host; socklen_t hostlen; - /* TODO: multiple incoming query storage + handling */ struct frag_buffer *incoming; struct frag_buffer *outgoing; int next_upstream_ack;