server: proxy: add more info on proxy logs

This commit is contained in:
kubistika 2020-09-21 10:43:47 +03:00
parent 508ba9201f
commit 5daba89e83
2 changed files with 17 additions and 0 deletions

View File

@ -449,6 +449,9 @@ static BOOL pf_client_connect(freerdp* instance)
if (pf_client_should_retry_without_nla(pc))
retry = pc->allow_next_conn_failure = TRUE;
LOG_INFO(TAG, pc, "connecting using security settings: rdp=%d, tls=%d, nla=%d",
settings->RdpSecurity, settings->TlsSecurity, settings->NlaSecurity);
if (!freerdp_connect(instance))
{
if (!retry)

View File

@ -169,9 +169,23 @@ static BOOL pf_server_post_connect(freerdp_peer* peer)
pClientContext* pc;
rdpSettings* client_settings;
proxyData* pdata;
char** accepted_channels = NULL;
size_t accepted_channels_count;
size_t i;
ps = (pServerContext*)peer->context;
pdata = ps->pdata;
LOG_INFO(TAG, ps, "Accepted client: %s", peer->settings->ClientHostname);
accepted_channels = WTSGetAcceptedChannelNames(peer, &accepted_channels_count);
if (accepted_channels)
{
for (i = 0; i < accepted_channels_count; i++)
LOG_INFO(TAG, ps, "Accepted channel: %s", accepted_channels[i]);
free(accepted_channels);
}
pc = pf_context_create_client_context(peer->settings);
if (pc == NULL)
{