Off by one...
This commit is contained in:
parent
63d9687ee3
commit
f86ffb4467
@ -9,8 +9,8 @@ import static spark.Spark.*;
|
|||||||
|
|
||||||
public class Server {
|
public class Server {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
if (args[1] != null) {
|
if (args[0] != null) {
|
||||||
port(Integer.parseInt(args[1]));
|
port(Integer.parseInt(args[0]));
|
||||||
} else {
|
} else {
|
||||||
port(8080);
|
port(8080);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user