mirror of
https://github.com/wownero/i2p-zero.git
synced 2026-12-01 20:54:01 +01:00
tunnelcontrol fix for vanity generation
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user