Skip to content

Commit 26cad86

Browse files
committed
Fixed bug in connection over ssh tunnel
1 parent 078d496 commit 26cad86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

redis-desktop-manager/source/redis/RedisConnectionOverSsh.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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-
120120
QString RedisConnectionOverSsh::getLastError()
121121
{
122122
if (socket == NULL) {

0 commit comments

Comments
 (0)