Fix number of args
This commit is contained in:
parent
f8ab972f34
commit
a9e22d5fae
@ -103,7 +103,7 @@ public class ClientP2P {
|
|||||||
final ServerPortRange serverPortRange = new ServerPortRange();
|
final ServerPortRange serverPortRange = new ServerPortRange();
|
||||||
final TrackerPortRange trackerPortRange = new TrackerPortRange();
|
final TrackerPortRange trackerPortRange = new TrackerPortRange();
|
||||||
|
|
||||||
if ((args.length != 6) && (args.length != 0)) {
|
if ((args.length != 6) && (args.length != 0) && (args.length != 8)) {
|
||||||
ClientP2P.printUsage(serverPortRange, trackerPortRange);
|
ClientP2P.printUsage(serverPortRange, trackerPortRange);
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
} else if (args.length == 6) {
|
} else if (args.length == 6) {
|
||||||
|
Loading…
Reference in New Issue
Block a user