From 5a0f36b0ce6f376304bb5bec2c45b9a8b9a92dde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Mon, 17 Mar 2014 10:26:22 -0400 Subject: [PATCH] libfreerdp-core: enable RDP6 bulk compression by default --- libfreerdp/core/settings.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libfreerdp/core/settings.c b/libfreerdp/core/settings.c index 2485847fb..13ea60567 100644 --- a/libfreerdp/core/settings.c +++ b/libfreerdp/core/settings.c @@ -253,7 +253,11 @@ rdpSettings* freerdp_settings_new(DWORD flags) settings->EncryptionLevel = ENCRYPTION_LEVEL_NONE; settings->CompressionEnabled = TRUE; - settings->CompressionLevel = PACKET_COMPR_TYPE_64K; + + if (settings->ServerMode) + settings->CompressionLevel = PACKET_COMPR_TYPE_64K; + else + settings->CompressionLevel = PACKET_COMPR_TYPE_RDP6; settings->Authentication = TRUE; settings->AuthenticationOnly = FALSE;