File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
redis-desktop-manager/source/redis Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,6 @@ bool RedisConnectionOverSsh::connect()
3333 // set password
3434 sshClient.setPassphrase (config.sshPassword );
3535
36- #ifdef Q_OS_LINUX
37- #endif
38-
3936 // connect to ssh server
4037 syncTimer.start (config.connectionTimeout );
4138 sshClient.connectToHost (config.sshUser , config.sshHost , config.sshPort );
@@ -64,6 +61,10 @@ bool RedisConnectionOverSsh::connect()
6461 return socketConnected;
6562 }
6663
64+ if (config.useAuth ()) {
65+ execute (QString (" AUTH %1" ).arg (config.auth ));
66+ }
67+
6768 return socketConnected;
6869}
6970
@@ -116,7 +117,6 @@ void RedisConnectionOverSsh::OnAuthRequired(QList<QxtSshClient::AuthenticationMe
116117
117118}
118119
119-
120120QString RedisConnectionOverSsh::getLastError ()
121121{
122122 if (socket == NULL ) {
You can’t perform that action at this time.
0 commit comments