[server,proxy] only intercept drdynvc if requested

This commit is contained in:
akallabeth
2024-07-25 10:51:13 +02:00
parent 86f2b1e26a
commit 784f9eab24
2 changed files with 3 additions and 1 deletions

View File

@@ -213,7 +213,8 @@ static BOOL pf_server_setup_channels(freerdp_peer* peer)
goto fail;
}
if (strcmp(cname, DRDYNVC_SVC_CHANNEL_NAME) == 0)
if ((strcmp(cname, DRDYNVC_SVC_CHANNEL_NAME) == 0) &&
(channelContext->channelMode == PF_UTILS_CHANNEL_INTERCEPT))
{
if (!pf_channel_setup_drdynvc(ps->pdata, channelContext))
{