|
|
|
@ -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;
|
|
|
|
|