Merge pull request #235 from mattymo/master

#234 redirect should use FDQN instead of netbios name when possible
This commit is contained in:
Marc-André Moreau 2011-11-29 14:00:10 -08:00
commit 5fd63def4f

View File

@ -135,6 +135,9 @@ boolean rdp_client_redirect(rdpRdp* rdp)
if (redirection->flags & LB_TARGET_NET_ADDRESS) {
xfree(settings->hostname);
settings->hostname = redirection->targetNetAddress.ascii;
} else if (redirection->flags & LB_TARGET_FQDN) {
xfree(settings->hostname);
settings->hostname = redirection->targetFQDN.ascii;
} else if (redirection->flags & LB_TARGET_NETBIOS_NAME) {
xfree(settings->hostname);
settings->hostname = redirection->targetNetBiosName.ascii;