v1.12 second release fix due to to tunnelcontrol bug

This commit is contained in:
knaccc
2019-09-07 21:50:29 +01:00
parent 9db0d07074
commit 490cf44700
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ or, if you would like a vanity b32 address for your server tunnel that begins wi
`tunnel-control.sh server.create.vanity <host> <port> <directory> <prefix>`
(if you do not want to specify the directory parameter, specify `none` as the directory)
If you do not want to specify the directory parameter above, specify `none` as the directory. Note that this command may take several minutes to complete.
#### Check the state of a tunnel. Returns "opening" or "open"
@@ -556,8 +556,7 @@ public class TunnelControl implements Runnable {
String destHost = args[1];
int destPort = Integer.parseInt(args[2]);
File serverTunnelConfigDir = null;
if(args.length>=4) serverTunnelConfigDir = new File(args[3]);
if("none".equals(serverTunnelConfigDir)) serverTunnelConfigDir = null;
if(args.length>=4 && !"none".equals(args[3])) serverTunnelConfigDir = new File(args[3]);
File serverKeyFile;
KeyPair keyPair;
if(serverTunnelConfigDir!=null) {