1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17:39:53 +03:00

Update src/Cedar/Protocol.c

Co-authored-by: Davide Beatrici <github@davidebeatrici.dev>
This commit is contained in:
Ilya Shipitsin 2024-04-14 10:36:55 +02:00 committed by GitHub
parent 71d71e51db
commit 6582955cfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6785,6 +6785,7 @@ PACK *PackLoginWithOpenVPNCertificate(char *hubname, char *username, X *x)
UniToStr(cn_username, sizeof(cn_username), x->subject_name->CommonName);
if (strchr(cn_username, '@') != NULL)
{
PackAddStr(p, "username", strtok(cn_username, "@"));
PackAddStr(p, "hubname", strtok(NULL, ""));