Skip to content

Commit

Permalink
Merge pull request #593 from qwertos/load_bal
Browse files Browse the repository at this point in the history
Filling out LoadBalanceInfo in the RDP settings struct
  • Loading branch information
antenore committed Jun 25, 2015
2 parents 336f12d + 62b3da6 commit 09fa850
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions remmina-plugins/rdp/rdp_plugin.c
Expand Up @@ -765,6 +765,12 @@ static gboolean remmina_rdp_main(RemminaProtocolWidget* gp)
rfi->settings->ClientHostname = strdup( g_get_host_name() );
}

if (remmina_plugin_service->file_get_string(remminafile, "loadbalanceinfo"))
{
rfi->settings->LoadBalanceInfo = (BYTE*) strdup(remmina_plugin_service->file_get_string(remminafile, "loadbalanceinfo"));
rfi->settings->LoadBalanceInfoLength = (UINT32) strlen((char *) rfi->settings->LoadBalanceInfo);
}

if (remmina_plugin_service->file_get_string(remminafile, "exec"))
{
rfi->settings->AlternateShell = strdup(remmina_plugin_service->file_get_string(remminafile, "exec"));
Expand Down Expand Up @@ -1246,6 +1252,7 @@ static const RemminaProtocolSetting remmina_rdp_advanced_settings[] =
{ REMMINA_PROTOCOL_SETTING_TYPE_TEXT, "clientname", N_("Client name"), FALSE, NULL, NULL },
{ REMMINA_PROTOCOL_SETTING_TYPE_TEXT, "exec", N_("Startup program"), FALSE, NULL, NULL },
{ REMMINA_PROTOCOL_SETTING_TYPE_TEXT, "execpath", N_("Startup path"), FALSE, NULL, NULL },
{ REMMINA_PROTOCOL_SETTING_TYPE_TEXT, "loadbalanceinfo", N_("Load Balance Info"), FALSE, NULL, NULL },
{ REMMINA_PROTOCOL_SETTING_TYPE_CHECK, "shareprinter", N_("Share local printers"), FALSE, NULL, NULL },
{ REMMINA_PROTOCOL_SETTING_TYPE_CHECK, "sharesmartcard", N_("Share smartcard"), FALSE, NULL, NULL },
{ REMMINA_PROTOCOL_SETTING_TYPE_CHECK, "disableclipboard", N_("Disable clipboard sync"), FALSE, NULL, NULL },
Expand Down

0 comments on commit 09fa850

Please sign in to comment.