send_stats_to_secmod() is called as soon as possible

This allows us to send the client assigned IP to radius server
as soon as it is available, rather than waiting a full interim_update
cycle.
This commit is contained in:
Nikos Mavrogiannopoulos
2016-01-14 17:22:39 +01:00
parent 1fc9e31f3e
commit 8aa55db239

View File

@@ -418,7 +418,7 @@ void vpn_server(struct worker_st *ws)
"could not disable system calls, kernel might not support seccomp");
}
}
ws->session_start_time = ws->last_stats_msg = time(0);
ws->session_start_time = time(0);
if (ws->remote_addr_len == sizeof(struct sockaddr_in))
ws->proto = AF_INET;