Fix number of args

This commit is contained in:
Louis Royer 2020-04-13 22:29:52 +02:00
parent f8ab972f34
commit a9e22d5fae

View File

@ -103,7 +103,7 @@ public class ClientP2P {
final ServerPortRange serverPortRange = new ServerPortRange();
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);
System.exit(1);
} else if (args.length == 6) {