diff --git a/libfreerdp/core/connection.c b/libfreerdp/core/connection.c index 9248742df..c21439755 100644 --- a/libfreerdp/core/connection.c +++ b/libfreerdp/core/connection.c @@ -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);