GUACAMOLE-1026: Set ConnectionType to LAN to prevent auto-detection in FreeRDP from overriding performance flags.

This commit is contained in:
Alexander Leitner 2025-05-01 22:57:12 -04:00
parent 038300d920
commit d37a2f2a48
No known key found for this signature in database
GPG Key ID: C8AF47D3CD30770E

View File

@ -1528,6 +1528,9 @@ void guac_rdp_push_settings(guac_client* client,
/* Explicitly set flag value */
freerdp_settings_set_uint32(rdp_settings, FreeRDP_PerformanceFlags, guac_rdp_get_performance_flags(guac_settings));
/* Set explicit connection type to LAN to prevent auto-detection */
freerdp_settings_set_uint32(rdp_settings, FreeRDP_ConnectionType, CONNECTION_TYPE_LAN);
/* Always request frame markers */
freerdp_settings_set_bool(rdp_settings, FreeRDP_FrameMarkerCommandEnabled, TRUE);
freerdp_settings_set_bool(rdp_settings, FreeRDP_SurfaceFrameMarkerEnabled, TRUE);
@ -1770,6 +1773,9 @@ void guac_rdp_push_settings(guac_client* client,
/* Explicitly set flag value */
rdp_settings->PerformanceFlags = guac_rdp_get_performance_flags(guac_settings);
/* Set explicit connection type to LAN to prevent auto-detection */
freerdp_settings_set_uint32(rdp_settings, FreeRDP_ConnectionType, CONNECTION_TYPE_LAN);
/* Always request frame markers */
rdp_settings->FrameMarkerCommandEnabled = TRUE;
rdp_settings->SurfaceFrameMarkerEnabled = TRUE;