summaryrefslogtreecommitdiff
path: root/src/plugins/remotelinux/remotelinuxusedportsgatherer.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@nokia.com>2012-02-10 10:39:48 +0100
committerhjk <qthjk@ovi.com>2012-02-10 16:16:42 +0100
commit220f67dfdf577ecda84fe830b16d6fac4008ccec (patch)
tree7fe70f06518cd503e76469acf89fce21c0aac7db /src/plugins/remotelinux/remotelinuxusedportsgatherer.cpp
parent17c18623ef419ee46bb52553324974530e03b1df (diff)
downloadqt-creator-220f67dfdf577ecda84fe830b16d6fac4008ccec.tar.gz
SSH: Export information about the underlying TCP connection.
Change-Id: I62bce3b563b6aba481642fac0d427c0f0d3b2ddd Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/remotelinux/remotelinuxusedportsgatherer.cpp')
-rw-r--r--src/plugins/remotelinux/remotelinuxusedportsgatherer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/remotelinux/remotelinuxusedportsgatherer.cpp b/src/plugins/remotelinux/remotelinuxusedportsgatherer.cpp
index 4dc6b4339b..2b7dd0b80b 100644
--- a/src/plugins/remotelinux/remotelinuxusedportsgatherer.cpp
+++ b/src/plugins/remotelinux/remotelinuxusedportsgatherer.cpp
@@ -86,7 +86,7 @@ void RemoteLinuxUsedPortsGatherer::start(const Utils::SshConnection::Ptr &connec
SLOT(handleRemoteStdErr(QByteArray)));
QString procFilePath;
int addressLength;
- if (connection->ipProtocolVersion() == QAbstractSocket::IPv4Protocol) {
+ if (connection->connectionInfo().localAddress.protocol() == QAbstractSocket::IPv4Protocol) {
procFilePath = QLatin1String("/proc/net/tcp");
addressLength = 8;
} else {