From aed1da4aaed44f4d81677d3c087d40c375c3cbee Mon Sep 17 00:00:00 2001 From: 3nprob <74199244+3nprob@users.noreply.github.com> Date: Sat, 14 Aug 2021 10:42:55 +0000 Subject: [PATCH] Make listening port configurable (#95) Co-authored-by: 3nprob <3nprob@3nprob> --- src/main/java/me/kavin/piped/ServerLauncher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/kavin/piped/ServerLauncher.java b/src/main/java/me/kavin/piped/ServerLauncher.java index a145b56..0d70bd8 100644 --- a/src/main/java/me/kavin/piped/ServerLauncher.java +++ b/src/main/java/me/kavin/piped/ServerLauncher.java @@ -279,7 +279,7 @@ public class ServerLauncher extends MultithreadedHttpServerLauncher { Config config() { return Config.create() .with("http.listenAddresses", - Config.ofValue(ofInetSocketAddress(), new InetSocketAddress(PORT))) + Config.ofValue(ofInetSocketAddress(), new InetSocketAddress(Constants.PORT))) .with("workers", Constants.HTTP_WORKERS); } };