Don't use CertificateName setting for RDG connections.
This commit is contained in:
parent
d5f9da2b3c
commit
3a8d721bb9
@ -1246,7 +1246,7 @@ int tls_verify_certificate(rdpTls* tls, CryptoCert cert, char* hostname,
|
||||
return 1; /* success! */
|
||||
|
||||
/* if user explicitly specified a certificate name, use it instead of the hostname */
|
||||
if (tls->settings->CertificateName)
|
||||
if (!tls->isGatewayTransport && tls->settings->CertificateName)
|
||||
hostname = tls->settings->CertificateName;
|
||||
|
||||
/* attempt verification using OpenSSL and the ~/.freerdp/certs certificate store */
|
||||
|
Loading…
Reference in New Issue
Block a user