summaryrefslogtreecommitdiffstats
path: root/java
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:53 -0400
commit04dd70e28187a2d9b90092349defcb64e37e87ac (patch)
tree89bc3bb00ae0631005b543dfe3dd0e18324da3ed /java
parent8381fcc54ac5edc983a79bc8e0c4dbd073fe561d (diff)
downloadtigervnc-04dd70e28187a2d9b90092349defcb64e37e87ac.tar.gz
tigervnc-04dd70e28187a2d9b90092349defcb64e37e87ac.zip
Set gateway host correctly when -via is used
Diffstat (limited to '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 {