mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-25 02:55:15 +00:00
Removed unused tun_user::disabled flag
This commit is contained in:
parent
fbf21caa6e
commit
141d1f1e4e
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user