mirror of https://github.com/macssh/macssh.git
Only enable libssh2 trace when 'trace' checkbox is checked
This commit is contained in:
parent
1d7f677b9c
commit
55aa3f0f08
|
@ -1664,7 +1664,10 @@ void *ssh2_thread(WindRec*w)
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
LIBSSH2_SESSION *session = libssh2_session_init_ex(NULL, NULL, NULL, w);
|
LIBSSH2_SESSION *session = libssh2_session_init_ex(NULL, NULL, NULL, w);
|
||||||
//libssh2_trace(session, INT_MAX);
|
|
||||||
|
if (w->trace)
|
||||||
|
libssh2_trace(session, INT_MAX);
|
||||||
|
|
||||||
libssh2_trace_sethandler(session, NULL, libssh2_handler);
|
libssh2_trace_sethandler(session, NULL, libssh2_handler);
|
||||||
if (libssh2_session_startup(session, sock)) {
|
if (libssh2_session_startup(session, sock)) {
|
||||||
syslog(0, "Failure establishing SSH session\n");
|
syslog(0, "Failure establishing SSH session\n");
|
||||||
|
|
Loading…
Reference in New Issue