mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
pass DPD and keepalive values to occtl
This commit is contained in:
@@ -753,6 +753,7 @@ int common_info_cmd(UserListRep * args, FILE *out, cmd_params_st *params)
|
||||
char *groupname = "";
|
||||
char str_since[64];
|
||||
char tmpbuf[MAX_TMPSTR_SIZE];
|
||||
char tmpbuf2[MAX_TMPSTR_SIZE];
|
||||
struct tm *tm;
|
||||
time_t t;
|
||||
unsigned at_least_one = 0;
|
||||
@@ -829,6 +830,8 @@ int common_info_cmd(UserListRep * args, FILE *out, cmd_params_st *params)
|
||||
|
||||
print_iface_stats(args->user[i]->tun, args->user[i]->conn_time, out, params, 1);
|
||||
|
||||
print_pair_value(out, params, "DPD", int2str(tmpbuf, args->user[i]->dpd), "KeepAlive", int2str(tmpbuf2, args->user[i]->keepalive), 1);
|
||||
|
||||
print_single_value(out, params, "Hostname", args->user[i]->hostname, 1);
|
||||
|
||||
print_time_ival7(tmpbuf, time(0), t);
|
||||
|
||||
Reference in New Issue
Block a user