Make listening port configurable

This commit is contained in:
3nprob 2021-08-14 19:21:16 +09:00
parent b28356d0ed
commit ce016bf086

View file

@ -279,7 +279,7 @@ public class ServerLauncher extends MultithreadedHttpServerLauncher {
Config config() { Config config() {
return Config.create() return Config.create()
.with("http.listenAddresses", .with("http.listenAddresses",
Config.ofValue(ofInetSocketAddress(), new InetSocketAddress(PORT))) Config.ofValue(ofInetSocketAddress(), new InetSocketAddress(Constants.PORT)))
.with("workers", Constants.HTTP_WORKERS); .with("workers", Constants.HTTP_WORKERS);
} }
}; };