Neutrinordp: Add more user info on connect failure

This commit is contained in:
matt335672 2021-10-21 14:12:46 +01:00
parent 9abe0960f7
commit 0416d32114
1 changed files with 9 additions and 1 deletions

View File

@ -257,7 +257,15 @@ lxrdp_connect(struct mod *mod)
LOG(LOG_LEVEL_INFO, buf); LOG(LOG_LEVEL_INFO, buf);
mod->server_msg(mod, buf, 0); mod->server_msg(mod, buf, 0);
} }
#else
{
/* This version of freerdp returns no useful information at
* all */
mod->server_msg(mod, "Neutrinordp connect failed.", 0);
mod->server_msg(mod, "No more information is available", 0);
mod->server_msg(mod, "Check host is up"
" and credentials are correct", 0);
}
#endif #endif
LOG(LOG_LEVEL_ERROR, "NeutrinoRDP proxy connection: status [Failed]," LOG(LOG_LEVEL_ERROR, "NeutrinoRDP proxy connection: status [Failed],"
" RDP client [%s:%s], RDP server [%s:%d], RDP server username [%s]," " RDP client [%s:%s], RDP server [%s:%d], RDP server username [%s],"