[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
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
2 changed files with 3 additions and 1 deletions

View File

@ -291,6 +291,7 @@ static PfChannelResult pf_channel_generic_front_data(proxyData* pdata,
BOOL pf_channel_setup_generic(pServerStaticChannelContext* channel)
{
WINPR_ASSERT(channel);
channel->onBackData = pf_channel_generic_back_data;
channel->onFrontData = pf_channel_generic_front_data;
return TRUE;

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))
{