GUACAMOLE-422: SSH parameter should use handshake for default.

This commit is contained in:
Nick Couchman 2019-03-25 17:23:58 -04:00
parent 6fae0b4b23
commit 5caa8a25f7

View File

@ -421,14 +421,10 @@ guac_ssh_settings* guac_ssh_parse_args(guac_user* user,
guac_user_parse_args_string(user, GUAC_SSH_CLIENT_ARGS, argv,
IDX_LOCALE, NULL);
/* Read the client timezone. */
/* Read the timezone parameter, or use client handshake. */
settings->timezone =
guac_user_parse_args_string(user, GUAC_SSH_CLIENT_ARGS, argv,
IDX_TIMEZONE, NULL);
/* If timezone not explicitly set, try to pull from tunnel */
if (settings->timezone == NULL)
settings->timezone = user->info.timezone;
IDX_TIMEZONE, user->info.timezone);
/* Parsing was successful */
return settings;