forked from I2P_Developers/i2p.i2p
handle the tunnels being instantiated prior to the CLI being inoked
(aka someone went to /i2ptunnel/ before the 2 minute delay passes)
This commit is contained in:
@@ -47,8 +47,11 @@ public class TunnelControllerGroup {
|
|||||||
|
|
||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
if ( (args == null) || (args.length <= 0) ) {
|
if ( (args == null) || (args.length <= 0) ) {
|
||||||
_instance = new TunnelControllerGroup(DEFAULT_CONFIG_FILE);
|
_instance = getInstance();
|
||||||
} else if (args.length == 1) {
|
} else if (args.length == 1) {
|
||||||
|
if (DEFAULT_CONFIG_FILE.equals(args[0]))
|
||||||
|
_instance = getInstance();
|
||||||
|
else
|
||||||
_instance = new TunnelControllerGroup(args[0]);
|
_instance = new TunnelControllerGroup(args[0]);
|
||||||
} else {
|
} else {
|
||||||
System.err.println("Usage: TunnelControllerGroup [filename]");
|
System.err.println("Usage: TunnelControllerGroup [filename]");
|
||||||
|
Reference in New Issue
Block a user