i give up

This commit is contained in:
Telesphoreo 2022-04-02 00:35:39 -05:00
parent 8e71735d4d
commit 81f554334b
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,6 @@ plugins {
java java
`maven-publish` `maven-publish`
idea idea
// id("com.github.johnrengelman.shadow") version "7.1.2"
} }
group = "dev.plex" group = "dev.plex"

View File

@ -32,6 +32,7 @@ public class HTTPDModule extends PlexModule
@Override @Override
public void load() public void load()
{ {
moduleConfig = new ModuleConfig(this, "settings.yml"); moduleConfig = new ModuleConfig(this, "settings.yml");
} }
@ -54,8 +55,8 @@ public class HTTPDModule extends PlexModule
configuration.addCustomizer(new ForwardedRequestCustomizer()); configuration.addCustomizer(new ForwardedRequestCustomizer());
HttpConnectionFactory factory = new HttpConnectionFactory(configuration); HttpConnectionFactory factory = new HttpConnectionFactory(configuration);
ServerConnector connector = new ServerConnector(server, factory); ServerConnector connector = new ServerConnector(server, factory);
connector.setPort(moduleConfig.getInt("server.port"));
connector.setHost(moduleConfig.getString("server.bind-address")); connector.setHost(moduleConfig.getString("server.bind-address"));
connector.setPort(moduleConfig.getInt("server.port"));
new GetEndpoints(); new GetEndpoints();
@ -73,7 +74,7 @@ public class HTTPDModule extends PlexModule
{ {
e.printStackTrace(); e.printStackTrace();
} }
}, "jetty-server"); }, "Jetty-Server");
serverThread.start(); serverThread.start();
} }