[X2Go-Commits] [x2goclient] 01/01: src/sshprocess.cpp: bind direct tunnel socket to localhost instead of any address. Fixes: #31.

git-admin at x2go.org git-admin at x2go.org
Tue Feb 28 16:42:09 CET 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2goclient.

commit 51a0b540d3e57c6eec91e9168d40fec7de4b37cb
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Tue Feb 28 16:38:58 2017 +0100

    src/sshprocess.cpp: bind direct tunnel socket to localhost instead of any address. Fixes: #31.
---
 debian/changelog   |    2 ++
 src/sshprocess.cpp |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 495eff0..f426aac 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -125,6 +125,8 @@ x2goclient (4.1.0.1-0x2go1) UNRELEASED; urgency=medium
       cleaner for downstream package maintainers (like, for instance, MacPorts
       itself.)
     - res/i18n/x2goclient_fi.ts: remove outdated comment.
+    - src/sshprocess.cpp: bind direct tunnel socket to localhost instead of
+      any address. Fixes: #31.
 
   [ Oleksandr Shneyder ]
   * New upstream version (4.1.0.1):
diff --git a/src/sshprocess.cpp b/src/sshprocess.cpp
index 33fdf38..d921806 100644
--- a/src/sshprocess.cpp
+++ b/src/sshprocess.cpp
@@ -138,7 +138,7 @@ void SshProcess::tunnelLoop()
     setsockopt(serverSocket, IPPROTO_TCP, TCP_NODELAY,&y, sizeof(int));
 
     address.sin_family=AF_INET;
-    address.sin_addr.s_addr=INADDR_ANY;
+    address.sin_addr.s_addr=htonl(INADDR_LOOPBACK);
     address.sin_port=htons(localPort);
     if (bind(serverSocket,(struct sockaddr*) &address,sizeof(address))!=0)
     {

--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list