[smuxi: 1/2] Frontend: support smuxi-servers that run on localhost even with SSH enabled
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi: 1/2] Frontend: support smuxi-servers that run on localhost even with SSH enabled
- Date: Wed, 15 Apr 2015 04:59:41 +0000 (UTC)
commit 24eb2e8fdaddd87481986df644c6547f22653850
Author: Mirco Bauer <meebey meebey net>
Date: Wed Apr 15 06:38:49 2015 +0200
Frontend: support smuxi-servers that run on localhost even with SSH enabled
Using SSH to connect the frontend to a smuxi-server makes no sense as there is
no need to tunnel any port, it is already on the same machine.
src/Frontend/EngineManager.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/Frontend/EngineManager.cs b/src/Frontend/EngineManager.cs
index a4b2295..d280429 100644
--- a/src/Frontend/EngineManager.cs
+++ b/src/Frontend/EngineManager.cs
@@ -165,6 +165,12 @@ namespace Smuxi.Frontend
sshParameters += " -C";
}
+ // HACK: using SSH to connect to a smuxi-server that runs on
+ // localhost makes no sense
+ if (sshHostname == "localhost" || sshHostname == "127.0.0.1") {
+ useSshTunnel = false;
+ }
+
int remotingPort = 0;
if (useSshTunnel) {
// find free remoting back-channel port
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]