Merge pull request #1730 from divineforge/master
Fixing the E_PROXY_RAP_ACCESSDENIED error
This commit is contained in:
commit
b23f0dba7f
@ -303,16 +303,16 @@ BOOL rdp_client_redirect(rdpRdp* rdp)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (settings->RedirectionFlags & LB_TARGET_NET_ADDRESS)
|
if (settings->RedirectionFlags & LB_TARGET_FQDN)
|
||||||
{
|
|
||||||
free(settings->ServerHostname);
|
|
||||||
settings->ServerHostname = _strdup(settings->TargetNetAddress);
|
|
||||||
}
|
|
||||||
else if (settings->RedirectionFlags & LB_TARGET_FQDN)
|
|
||||||
{
|
{
|
||||||
free(settings->ServerHostname);
|
free(settings->ServerHostname);
|
||||||
settings->ServerHostname = _strdup(settings->RedirectionTargetFQDN);
|
settings->ServerHostname = _strdup(settings->RedirectionTargetFQDN);
|
||||||
}
|
}
|
||||||
|
else if (settings->RedirectionFlags & LB_TARGET_NET_ADDRESS)
|
||||||
|
{
|
||||||
|
free(settings->ServerHostname);
|
||||||
|
settings->ServerHostname = _strdup(settings->TargetNetAddress);
|
||||||
|
}
|
||||||
else if (settings->RedirectionFlags & LB_TARGET_NETBIOS_NAME)
|
else if (settings->RedirectionFlags & LB_TARGET_NETBIOS_NAME)
|
||||||
{
|
{
|
||||||
free(settings->ServerHostname);
|
free(settings->ServerHostname);
|
||||||
|
@ -103,16 +103,16 @@ int rdp_redirection_apply_settings(rdpRdp* rdp)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (settings->RedirectionFlags & LB_TARGET_NET_ADDRESS)
|
if (settings->RedirectionFlags & LB_TARGET_FQDN)
|
||||||
{
|
|
||||||
free(settings->TargetNetAddress);
|
|
||||||
settings->TargetNetAddress = _strdup(redirection->TargetNetAddress);
|
|
||||||
}
|
|
||||||
else if (settings->RedirectionFlags & LB_TARGET_FQDN)
|
|
||||||
{
|
{
|
||||||
free(settings->RedirectionTargetFQDN);
|
free(settings->RedirectionTargetFQDN);
|
||||||
settings->RedirectionTargetFQDN = _strdup(redirection->TargetFQDN);
|
settings->RedirectionTargetFQDN = _strdup(redirection->TargetFQDN);
|
||||||
}
|
}
|
||||||
|
else if (settings->RedirectionFlags & LB_TARGET_NET_ADDRESS)
|
||||||
|
{
|
||||||
|
free(settings->TargetNetAddress);
|
||||||
|
settings->TargetNetAddress = _strdup(redirection->TargetNetAddress);
|
||||||
|
}
|
||||||
else if (settings->RedirectionFlags & LB_TARGET_NETBIOS_NAME)
|
else if (settings->RedirectionFlags & LB_TARGET_NETBIOS_NAME)
|
||||||
{
|
{
|
||||||
free(settings->RedirectionTargetNetBiosName);
|
free(settings->RedirectionTargetNetBiosName);
|
||||||
|
Loading…
Reference in New Issue
Block a user