mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-422: Only send timezone if it's there.
This commit is contained in:
@@ -185,12 +185,15 @@ public class ConfiguredGuacamoleSocket implements GuacamoleSocket {
|
|||||||
info.getImageMimetypes().toArray(new String[0])
|
info.getImageMimetypes().toArray(new String[0])
|
||||||
));
|
));
|
||||||
|
|
||||||
// Send client timezone
|
// Send client timezone, if available
|
||||||
|
String timezone = info.getTimezone();
|
||||||
|
if (timezone != null && !timezone.isEmpty()) {
|
||||||
writer.writeInstruction(
|
writer.writeInstruction(
|
||||||
new GuacamoleInstruction(
|
new GuacamoleInstruction(
|
||||||
"timezone",
|
"timezone",
|
||||||
info.getTimezone()
|
info.getTimezone()
|
||||||
));
|
));
|
||||||
|
}
|
||||||
|
|
||||||
// Send args
|
// Send args
|
||||||
writer.writeInstruction(new GuacamoleInstruction("connect", arg_values));
|
writer.writeInstruction(new GuacamoleInstruction("connect", arg_values));
|
||||||
|
Reference in New Issue
Block a user