check_multiple_users: do not account disconnected ones

When max-same-clients is set to 1 and a user re-using a cookie
connects, check_multiple_users() would prevent the user from
reconnecting. This corrects the issue by taking into account
only valid sessions that have not yet been disconnected.

Resolves: #223

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
Nikos Mavrogiannopoulos
2019-12-15 20:43:22 +01:00
parent 935818346d
commit 55d5af2ebc
7 changed files with 286 additions and 11 deletions

3
NEWS
View File

@@ -1,7 +1,8 @@
* Version 0.12.6 (unreleased)
- Improved IPv6 support for anyconnect clients. Patch by Leendert van Doorn.
- The 'split-dns' configuration directive can be used per-user (#229).
- The max-same-clients=1 configuration option no longer refuses the
reconnection of an already connected user (#223).
* Version 0.12.5 (released 2019-10-16)
- Fixed issue with FreeBSD tun devices closing (#213).