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:
jrandom
2004-08-19 21:11:42 +00:00
committed by zzz
parent 5e07c478f5
commit 410abaf92c

View File

@@ -47,9 +47,12 @@ public class TunnelControllerGroup {
public static void main(String args[]) {
if ( (args == null) || (args.length <= 0) ) {
_instance = new TunnelControllerGroup(DEFAULT_CONFIG_FILE);
_instance = getInstance();
} else if (args.length == 1) {
_instance = new TunnelControllerGroup(args[0]);
if (DEFAULT_CONFIG_FILE.equals(args[0]))
_instance = getInstance();
else
_instance = new TunnelControllerGroup(args[0]);
} else {
System.err.println("Usage: TunnelControllerGroup [filename]");
return;