mirror of https://github.com/neutrinolabs/xrdp
libxrdp: change channel_code into a meaningful name
This commit is contained in:
parent
e83a7c1fef
commit
94cdbdcee6
|
@ -65,7 +65,7 @@ struct xrdp_client_info
|
|||
int rdp_compression;
|
||||
int rdp_autologin;
|
||||
int crypt_level; /* 1, 2, 3 = low, medium, high */
|
||||
int channel_code; /* 0 = no channels 1 = channels */
|
||||
int channels_allowed; /* 0 = no channels 1 = channels */
|
||||
int sound_code; /* 1 = leave sound at server */
|
||||
int is_mce;
|
||||
int rdp5_performanceflags;
|
||||
|
|
|
@ -105,8 +105,8 @@ xrdp_rdp_read_config(struct xrdp_client_info *client_info)
|
|||
}
|
||||
else if (g_strcasecmp(item, "allow_channels") == 0)
|
||||
{
|
||||
client_info->channel_code = g_text2bool(value);
|
||||
if (client_info->channel_code == 0)
|
||||
client_info->channels_allowed = g_text2bool(value);
|
||||
if (client_info->channels_allowed == 0)
|
||||
{
|
||||
log_message(LOG_LEVEL_DEBUG,"Info - All channels are disabled");
|
||||
}
|
||||
|
|
|
@ -1829,12 +1829,12 @@ xrdp_sec_process_mcs_data_channels(struct xrdp_sec *self, struct stream *s)
|
|||
client_info = &(self->rdp_layer->client_info);
|
||||
|
||||
|
||||
DEBUG(("processing channels, channel_code is %d", client_info->channel_code));
|
||||
DEBUG(("processing channels, channels_allowed is %d", client_info->channels_allowed));
|
||||
|
||||
/* this is an option set in xrdp.ini */
|
||||
if (client_info->channel_code != 1) /* are channels on? */
|
||||
if (client_info->channels_allowed != 1) /* are channels on? */
|
||||
{
|
||||
g_writeln("Processing channel data from client - The channel is off");
|
||||
g_writeln("xrdp_sec_process_mcs_data_channels: all channels are disabled by configuration");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue