mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-08-08 09:21:48 +08:00
Merge branch 'tmp-736' into 'master'
Fix calculation of avg_auth_time acros sec-mod instances Closes #736 See merge request openconnect/ocserv!560
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
* /ca.pem
|
||||
* /ca.cer
|
||||
- Fix incorrect local address when using PROXY protocol with IPv6 (#711).
|
||||
- Fix calculation of avg_auth_time acros sec-mod instances (#736)
|
||||
|
||||
|
||||
* Version 1.4.2 (released 2026-04-16)
|
||||
|
||||
+1
-1
@@ -227,7 +227,7 @@ static void method_status(method_ctx *ctx, int cfd, uint8_t *msg,
|
||||
rep.max_auth_time =
|
||||
MAX(rep.max_auth_time,
|
||||
ctx->s->sec_mod_instances[i].max_auth_time);
|
||||
rep.avg_auth_time = ctx->s->sec_mod_instances[i].avg_auth_time;
|
||||
rep.avg_auth_time += ctx->s->sec_mod_instances[i].avg_auth_time;
|
||||
}
|
||||
if (ctx->s->sec_mod_instance_count != 0) {
|
||||
rep.avg_auth_time /= ctx->s->sec_mod_instance_count;
|
||||
|
||||
Reference in New Issue
Block a user