added commentary on default options

This commit is contained in:
Flavien Haas 2020-03-23 16:42:23 +01:00 committed by Louis
parent f95f4245a5
commit 2313b6799d

View File

@ -44,7 +44,7 @@ public class Tracker {
Scanner scanner = new Scanner(System.in);
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();
if(hostname.equals("")){
hostname = defaultHostname;
@ -52,7 +52,7 @@ public class Tracker {
} else{
System.out.println("using hostname : " + hostname);
}
System.out.println("enter port : ");
System.out.println("enter port (default = 6969): ");
String port = scanner.nextLine();
if(port.equals("")){
port = defaultPort;