mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
added more detailed session information messages
This commit is contained in:
committed by
Nikos Mavrogiannopoulos
parent
221b165918
commit
6128b5f061
+1
-1
@@ -173,7 +173,7 @@ struct proc_st *ctmp;
|
||||
*/
|
||||
void remove_proc(main_server_st * s, struct proc_st *proc, unsigned flags)
|
||||
{
|
||||
mslog(s, proc, LOG_INFO, "user disconnected");
|
||||
mslog(s, proc, LOG_INFO, "user disconnected (rx: %lu, tx: %lu)", proc->bytes_in, proc->bytes_out);
|
||||
|
||||
list_del(&proc->list);
|
||||
s->active_clients--;
|
||||
|
||||
@@ -1563,6 +1563,7 @@ static int connect_handler(worker_st * ws)
|
||||
if (req->no_ipv4 != 0 && ip6 == 0)
|
||||
continue;
|
||||
|
||||
oclog(ws, LOG_DEBUG, "adding DNS %s", ws->vinfo.dns[i]);
|
||||
ret =
|
||||
cstp_printf(ws, "X-CSTP-DNS: %s\r\n",
|
||||
ws->vinfo.dns[i]);
|
||||
@@ -1580,6 +1581,7 @@ static int connect_handler(worker_st * ws)
|
||||
if (req->no_ipv4 != 0 && ip6 == 0)
|
||||
continue;
|
||||
|
||||
oclog(ws, LOG_DEBUG, "adding NBNS %s", ws->vinfo.nbns[i]);
|
||||
ret =
|
||||
cstp_printf(ws, "X-CSTP-NBNS: %s\r\n",
|
||||
ws->vinfo.nbns[i]);
|
||||
|
||||
Reference in New Issue
Block a user