Removed unused tun_user::disabled flag

This commit is contained in:
frekky 2015-11-10 20:04:14 +08:00
parent fbf21caa6e
commit 141d1f1e4e
2 changed files with 1 additions and 3 deletions

View File

@ -122,7 +122,7 @@ user_sending(int user)
int int
user_active(int i) 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 int

View File

@ -29,14 +29,12 @@ struct tun_user {
int active; int active;
int authenticated; int authenticated;
int authenticated_raw; int authenticated_raw;
int disabled;
time_t last_pkt; time_t last_pkt;
struct timeval dns_timeout; struct timeval dns_timeout;
int seed; int seed;
in_addr_t tun_ip; in_addr_t tun_ip;
struct sockaddr_storage host; struct sockaddr_storage host;
socklen_t hostlen; socklen_t hostlen;
/* TODO: multiple incoming query storage + handling */
struct frag_buffer *incoming; struct frag_buffer *incoming;
struct frag_buffer *outgoing; struct frag_buffer *outgoing;
int next_upstream_ack; int next_upstream_ack;