tunnelcontrol fix for vanity generation

pull/35/head
knaccc 5 years ago
parent 0856f9b32a
commit 20f1c02939

@ -124,7 +124,9 @@ specified host and port. Note that the base 32 I2P destination address determini
or, if you would like a vanity b32 address for your server tunnel that begins with a 3 character (alphanumeric) prefix, type:
`tunnel-control.sh server.create.vanity <host> <port> <(optional) directory> <prefix>`
`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)
#### Check the state of a tunnel. Returns "opening" or "open"

@ -549,8 +549,7 @@ public class TunnelControl implements Runnable {
switch(args[0]) {
case "server.create.vanity" : {
if(args.length>=5) vanityPrefix = args[4];
else if(args.length==4) vanityPrefix = args[3];
vanityPrefix = args[4];
}
case "server.create": {
@ -558,6 +557,7 @@ public class TunnelControl implements Runnable {
int destPort = Integer.parseInt(args[2]);
File serverTunnelConfigDir = null;
if(args.length>=4) serverTunnelConfigDir = new File(args[3]);
if("none".equals(serverTunnelConfigDir)) serverTunnelConfigDir = null;
File serverKeyFile;
KeyPair keyPair;
if(serverTunnelConfigDir!=null) {

Loading…
Cancel
Save