added commentary on default options
This commit is contained in:
parent
f95f4245a5
commit
2313b6799d
@ -44,7 +44,7 @@ public class Tracker {
|
|||||||
Scanner scanner = new Scanner(System.in);
|
Scanner scanner = new Scanner(System.in);
|
||||||
Tracker t;
|
Tracker t;
|
||||||
|
|
||||||
System.out.println("Tracker Server, enter hostname to bind : ");
|
System.out.println("Tracker Server, enter hostname to bind (default = localhost): ");
|
||||||
String hostname = scanner.nextLine();
|
String hostname = scanner.nextLine();
|
||||||
if(hostname.equals("")){
|
if(hostname.equals("")){
|
||||||
hostname = defaultHostname;
|
hostname = defaultHostname;
|
||||||
@ -52,7 +52,7 @@ public class Tracker {
|
|||||||
} else{
|
} else{
|
||||||
System.out.println("using hostname : " + hostname);
|
System.out.println("using hostname : " + hostname);
|
||||||
}
|
}
|
||||||
System.out.println("enter port : ");
|
System.out.println("enter port (default = 6969): ");
|
||||||
String port = scanner.nextLine();
|
String port = scanner.nextLine();
|
||||||
if(port.equals("")){
|
if(port.equals("")){
|
||||||
port = defaultPort;
|
port = defaultPort;
|
||||||
|
Loading…
Reference in New Issue
Block a user