refactors to server tls code
This commit is contained in:
parent
3021a1d405
commit
a932852b2c
4 changed files with 44 additions and 27 deletions
|
|
@ -226,7 +226,7 @@ public class JobServClient {
|
|||
// fails if port is improperly formatted or if an ssl exception occurs
|
||||
JobServClient client;
|
||||
try {
|
||||
client = new JobServClient(args[0], Integer.parseInt(args[1]), args[2], args[1], args[0]);
|
||||
client = new JobServClient(args[3], Integer.parseInt(args[4]), args[2], args[1], args[0]);
|
||||
|
||||
} catch (NumberFormatException e) {
|
||||
System.out.println("Invalid Port");
|
||||
|
|
@ -239,7 +239,7 @@ public class JobServClient {
|
|||
// declare pid up here so that multiple switch cases can use it
|
||||
int candidatePid;
|
||||
// parse remaining args
|
||||
switch (args[2]) {
|
||||
switch (args[5]) {
|
||||
case "new":
|
||||
if (args.length < 7) {
|
||||
System.out.println("Improper formatting, try client --help");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue