[server,proxy] only intercept drdynvc if requested
This commit is contained in:
parent
86f2b1e26a
commit
784f9eab24
@ -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;
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user