core: Enable network auto detection by default

This commit is contained in:
Martin Fleisz 2021-02-04 13:10:58 +01:00 committed by akallabeth
parent 79fb38da84
commit e2620f0faa
2 changed files with 9 additions and 10 deletions

View File

@ -593,11 +593,10 @@ int rdp_recv_autodetect_request_packet(rdpRdp* rdp, wStream* s)
if (!rdp->settings->NetworkAutoDetect)
{
WLog_ERR(AUTODETECT_TAG,
WLog_WARN(AUTODETECT_TAG,
"Received a [MS-RDPBCGR] 2.2.14.1.1 RTT Measure Request (RDP_RTT_REQUEST) [%s] "
"message but support was not enabled",
autodetect_request_type_to_string(autodetectReqPdu.requestType));
return -1;
}
if (autodetectReqPdu.headerTypeId != TYPE_ID_AUTODETECT_REQUEST)
@ -671,11 +670,10 @@ int rdp_recv_autodetect_response_packet(rdpRdp* rdp, wStream* s)
if (!rdp->settings->NetworkAutoDetect)
{
WLog_ERR(AUTODETECT_TAG,
WLog_WARN(AUTODETECT_TAG,
"Received a [MS-RDPBCGR] 2.2.14.2.1 RTT Measure Response (RDP_RTT_RESPONSE) [%s] "
"message but support was not enabled",
autodetect_request_type_to_string(autodetectRspPdu.responseType));
return -1;
}
if (autodetectRspPdu.headerTypeId != TYPE_ID_AUTODETECT_RESPONSE)

View File

@ -352,6 +352,7 @@ rdpSettings* freerdp_settings_new(DWORD flags)
settings->DisableMenuAnims = TRUE;
settings->DisableThemes = FALSE;
settings->ConnectionType = CONNECTION_TYPE_LAN;
settings->NetworkAutoDetect = TRUE;
settings->EncryptionMethods = ENCRYPTION_METHOD_NONE;
settings->EncryptionLevel = ENCRYPTION_LEVEL_NONE;
settings->FIPSMode = FALSE;