diff options
author | Brian P. Hinz <bphinz@users.sf.net> | 2017-05-06 11:24:11 -0400 |
---|---|---|
committer | Brian P. Hinz <bphinz@users.sf.net> | 2017-05-06 11:27:53 -0400 |
commit | 04dd70e28187a2d9b90092349defcb64e37e87ac (patch) | |
tree | 89bc3bb00ae0631005b543dfe3dd0e18324da3ed /java | |
parent | 8381fcc54ac5edc983a79bc8e0c4dbd073fe561d (diff) | |
download | tigervnc-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.java | 2 |
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 { |