shadow: disable RemoteFX if connection type is not LAN
This commit is contained in:
parent
7574788ba5
commit
af858e8f2a
@ -558,6 +558,7 @@ BOOL gcc_read_client_core_data(wStream* s, rdpMcs* mcs, UINT16 blockLength)
|
||||
{
|
||||
char* str = NULL;
|
||||
UINT32 version;
|
||||
BYTE connectionType = 0;
|
||||
UINT32 clientColorDepth;
|
||||
UINT16 colorDepth = 0;
|
||||
UINT16 postBeta2ColorDepth = 0;
|
||||
@ -653,7 +654,7 @@ BOOL gcc_read_client_core_data(wStream* s, rdpMcs* mcs, UINT16 blockLength)
|
||||
|
||||
if (blockLength < 1)
|
||||
break;
|
||||
Stream_Read_UINT8(s, settings->PerformanceFlags); /* connectionType (1 byte) */
|
||||
Stream_Read_UINT8(s, connectionType); /* connectionType (1 byte) */
|
||||
blockLength -= 1;
|
||||
|
||||
if (blockLength < 1)
|
||||
@ -759,6 +760,11 @@ BOOL gcc_read_client_core_data(wStream* s, rdpMcs* mcs, UINT16 blockLength)
|
||||
if (settings->SupportDynamicTimeZone)
|
||||
settings->SupportDynamicTimeZone = (earlyCapabilityFlags & RNS_UD_CS_SUPPORT_DYNAMIC_TIME_ZONE) ? TRUE : FALSE;
|
||||
|
||||
if (!(earlyCapabilityFlags & RNS_UD_CS_VALID_CONNECTION_TYPE))
|
||||
connectionType = 0;
|
||||
|
||||
settings->ConnectionType = connectionType;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -166,6 +166,11 @@ BOOL shadow_client_post_connect(freerdp_peer* peer)
|
||||
settings->RemoteFxCodec = FALSE;
|
||||
}
|
||||
|
||||
if (settings->ConnectionType != CONNECTION_TYPE_LAN)
|
||||
{
|
||||
settings->RemoteFxCodec = FALSE;
|
||||
}
|
||||
|
||||
WLog_ERR(TAG, "Client from %s is activated (%dx%d@%d)",
|
||||
peer->hostname, settings->DesktopWidth, settings->DesktopHeight, settings->ColorDepth);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user