]> source.dussan.org Git - tigervnc.git/commitdiff
Set gateway host correctly when -via is used
authorBrian P. Hinz <bphinz@users.sf.net>
Sat, 6 May 2017 15:24:11 +0000 (11:24 -0400)
committerBrian P. Hinz <bphinz@users.sf.net>
Sat, 6 May 2017 15:27:53 +0000 (11:27 -0400)
java/com/tigervnc/vncviewer/Tunnel.java

index bb98ec7c3d3e4051b53bcf7ba69bf923570356a1..8d083f8e3dda2288fcf5233b7d3f9985d9a4fcf0 100644 (file)
@@ -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 {