aboutsummaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/vncviewer/Tunnel.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/tigervnc/vncviewer/Tunnel.java')
-rw-r--r--java/com/tigervnc/vncviewer/Tunnel.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/tigervnc/vncviewer/Tunnel.java b/java/com/tigervnc/vncviewer/Tunnel.java
index bb98ec7c..8d083f8e 100644
--- a/java/com/tigervnc/vncviewer/Tunnel.java
+++ b/java/com/tigervnc/vncviewer/Tunnel.java
@@ -58,7 +58,7 @@ public class Tunnel {
String remoteHost;
remotePort = cc.getServerPort();
- if (tunnel.getValue()) {
+ if (tunnel.getValue() && via.getValue().isEmpty()) {
gatewayHost = cc.getServerName();
remoteHost = "localhost";
} else {