mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-04-29 08:20:30 +05:30
Make listening port configurable (#95)
Co-authored-by: 3nprob <3nprob@3nprob>
This commit is contained in:
parent
b28356d0ed
commit
aed1da4aae
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user