mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-25 11:05: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
|
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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user