aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian P. Hinz <bphinz@users.sf.net>2017-05-06 11:24:11 -0400
committerBrian P. Hinz <bphinz@users.sf.net>2017-05-06 11:27:26 -0400
commit91eef93b661bf12dbb7397e8cfc7373be4411456 (patch)
tree2541e0ac47cf21ffe3eefe4015c24a82889da3e7
parentdf9104023c5e3e437d1e97d12296e32aca717d97 (diff)
downloadtigervnc-91eef93b661bf12dbb7397e8cfc7373be4411456.tar.gz
tigervnc-91eef93b661bf12dbb7397e8cfc7373be4411456.zip
Set gateway host correctly when -via is used
-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 {