aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/ssh/sshconnection.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2015-04-14 15:47:55 +0200
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2015-04-15 13:06:29 +0000
commitbde83c30bf051425af6c19a417ad8c87bac68345 (patch)
tree64dc45f3b3f12ac82ae2b66a2f0d6ec5473e518e /src/libs/ssh/sshconnection.h
parentaee5668b623eb9040378ddd20a3ebed118fc7cd5 (diff)
SSH: Fix TCP/IP forwarding support.
We hardcoded the remote host to the SSH server for some reason, and the originating port was bogus as well. Change-Id: I8f6700bc12f4374302dd3bfc035c9c9f060f56ef Reviewed-by: Caspar Romot <cro@icd.ee> Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/libs/ssh/sshconnection.h')
-rw-r--r--src/libs/ssh/sshconnection.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/ssh/sshconnection.h b/src/libs/ssh/sshconnection.h
index db08eb3433..3d8f355eff 100644
--- a/src/libs/ssh/sshconnection.h
+++ b/src/libs/ssh/sshconnection.h
@@ -127,7 +127,8 @@ public:
QSharedPointer<SshRemoteProcess> createRemoteProcess(const QByteArray &command);
QSharedPointer<SshRemoteProcess> createRemoteShell();
QSharedPointer<SftpChannel> createSftpChannel();
- QSharedPointer<SshDirectTcpIpTunnel> createTunnel(quint16 remotePort);
+ QSharedPointer<SshDirectTcpIpTunnel> createTunnel(const QString &originatingHost,
+ quint16 originatingPort, const QString &remoteHost, quint16 remotePort);
// -1 if an error occurred, number of channels closed otherwise.
int closeAllChannels();