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>
This commit is contained in:
Christian Kandeler
2015-04-14 15:47:55 +02:00
parent aee5668b62
commit bde83c30bf
10 changed files with 57 additions and 48 deletions

View File

@@ -37,7 +37,6 @@
#include <QSharedPointer>
namespace QSsh {
class SshConnectionInfo;
namespace Internal {
class SshChannelManager;
@@ -71,8 +70,9 @@ signals:
void tunnelClosed();
private:
SshDirectTcpIpTunnel(quint32 channelId, quint16 remotePort,
const SshConnectionInfo &connectionInfo, Internal::SshSendFacility &sendFacility);
SshDirectTcpIpTunnel(quint32 channelId, const QString &originatingHost,
quint16 originatingPort, const QString &remoteHost, quint16 remotePort,
Internal::SshSendFacility &sendFacility);
// QIODevice stuff
qint64 readData(char *data, qint64 maxlen);