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:
parent
71d71e51db
commit
6582955cfa
@ -6785,6 +6785,7 @@ PACK *PackLoginWithOpenVPNCertificate(char *hubname, char *username, X *x)
|
|||||||
UniToStr(cn_username, sizeof(cn_username), x->subject_name->CommonName);
|
UniToStr(cn_username, sizeof(cn_username), x->subject_name->CommonName);
|
||||||
|
|
||||||
if (strchr(cn_username, '@') != NULL)
|
if (strchr(cn_username, '@') != NULL)
|
||||||
|
|
||||||
{
|
{
|
||||||
PackAddStr(p, "username", strtok(cn_username, "@"));
|
PackAddStr(p, "username", strtok(cn_username, "@"));
|
||||||
PackAddStr(p, "hubname", strtok(NULL, ""));
|
PackAddStr(p, "hubname", strtok(NULL, ""));
|
||||||
|
Loading…
Reference in New Issue
Block a user