mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-16 14:57:48 +08:00
store the time a client connected.
This commit is contained in:
@@ -936,6 +936,7 @@ fork_failed:
|
||||
ctmp->remote_addr_len = ws.remote_addr_len;
|
||||
|
||||
ctmp->pid = pid;
|
||||
ctmp->conn_time = time(0);
|
||||
ctmp->fd = cmd_fd[0];
|
||||
set_cloexec_flag (cmd_fd[0], 1);
|
||||
|
||||
|
||||
@@ -77,6 +77,8 @@ struct proc_st {
|
||||
pid_t pid;
|
||||
time_t udp_fd_receive_time; /* when the corresponding process has received a UDP fd */
|
||||
|
||||
time_t conn_time; /* the time the user connected */
|
||||
|
||||
/* the tun lease this process has */
|
||||
struct tun_lease_st tun_lease;
|
||||
struct ip_lease_st *ipv4;
|
||||
|
||||
Reference in New Issue
Block a user