Skip redirection resolve test if we're connecting via gateway.
This commit is contained in:
parent
870b7025b7
commit
7839091f8b
@ -422,7 +422,7 @@ static BOOL rdp_client_redirect_try_fqdn(rdpSettings* settings)
|
||||
{
|
||||
if (settings->RedirectionFlags & LB_TARGET_FQDN)
|
||||
{
|
||||
if (rdp_client_redirect_resolvable(settings->RedirectionTargetFQDN))
|
||||
if (settings->GatewayEnabled || rdp_client_redirect_resolvable(settings->RedirectionTargetFQDN))
|
||||
{
|
||||
free(settings->ServerHostname);
|
||||
settings->ServerHostname = _strdup(settings->RedirectionTargetFQDN);
|
||||
@ -457,7 +457,7 @@ static BOOL rdp_client_redirect_try_netbios(rdpSettings* settings)
|
||||
{
|
||||
if (settings->RedirectionFlags & LB_TARGET_NETBIOS_NAME)
|
||||
{
|
||||
if (rdp_client_redirect_resolvable(settings->RedirectionTargetNetBiosName))
|
||||
if (settings->GatewayEnabled || rdp_client_redirect_resolvable(settings->RedirectionTargetNetBiosName))
|
||||
{
|
||||
free(settings->ServerHostname);
|
||||
settings->ServerHostname = _strdup(settings->RedirectionTargetNetBiosName);
|
||||
|
Loading…
Reference in New Issue
Block a user