From 5caa8a25f7e3fb228356c51fe5cbca181c185134 Mon Sep 17 00:00:00 2001 From: Nick Couchman Date: Mon, 25 Mar 2019 17:23:58 -0400 Subject: [PATCH] GUACAMOLE-422: SSH parameter should use handshake for default. --- src/protocols/ssh/settings.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/protocols/ssh/settings.c b/src/protocols/ssh/settings.c index 74706e0d..a0af9f9b 100644 --- a/src/protocols/ssh/settings.c +++ b/src/protocols/ssh/settings.c @@ -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;