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:26 -0400 |
commit | 91eef93b661bf12dbb7397e8cfc7373be4411456 (patch) | |
tree | 2541e0ac47cf21ffe3eefe4015c24a82889da3e7 | |
parent | df9104023c5e3e437d1e97d12296e32aca717d97 (diff) | |
download | tigervnc-91eef93b661bf12dbb7397e8cfc7373be4411456.tar.gz tigervnc-91eef93b661bf12dbb7397e8cfc7373be4411456.zip |
Set gateway host correctly when -via is used
-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 { |