mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
occtl: re-arranged user-agent and MTU printing
This commit is contained in:
@@ -599,13 +599,13 @@ int common_info_cmd(UserListRep * args)
|
|||||||
}
|
}
|
||||||
fprintf(out, "\tDevice: %s ", args->user[i]->tun);
|
fprintf(out, "\tDevice: %s ", args->user[i]->tun);
|
||||||
|
|
||||||
if (args->user[i]->user_agent != NULL && args->user[i]->user_agent[0] != 0)
|
if (args->user[i]->has_mtu != 0)
|
||||||
fprintf(out, "User-Agent: %s\n", args->user[i]->user_agent);
|
fprintf(out, "MTU: %d\n", args->user[i]->mtu);
|
||||||
else
|
else
|
||||||
fprintf(out, "\n");
|
fprintf(out, "\n");
|
||||||
|
|
||||||
if (args->user[i]->has_mtu != 0)
|
if (args->user[i]->user_agent != NULL && args->user[i]->user_agent[0] != 0)
|
||||||
fprintf(out, "\tMTU: %d\n", args->user[i]->mtu);
|
fprintf(out, "\tUser-Agent: %s\n", args->user[i]->user_agent);
|
||||||
|
|
||||||
if (args->user[i]->rx_per_sec > 0 || args->user[i]->tx_per_sec > 0) {
|
if (args->user[i]->rx_per_sec > 0 || args->user[i]->tx_per_sec > 0) {
|
||||||
/* print limits */
|
/* print limits */
|
||||||
|
|||||||
Reference in New Issue
Block a user