mirror of
https://github.com/plexusorg/Module-HTTPD.git
synced 2024-12-22 16:04:59 +00:00
i give up
This commit is contained in:
parent
8e71735d4d
commit
81f554334b
2 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,6 @@ plugins {
|
|||
java
|
||||
`maven-publish`
|
||||
idea
|
||||
// id("com.github.johnrengelman.shadow") version "7.1.2"
|
||||
}
|
||||
|
||||
group = "dev.plex"
|
||||
|
|
|
@ -32,6 +32,7 @@ public class HTTPDModule extends PlexModule
|
|||
@Override
|
||||
public void load()
|
||||
{
|
||||
|
||||
moduleConfig = new ModuleConfig(this, "settings.yml");
|
||||
}
|
||||
|
||||
|
@ -54,8 +55,8 @@ public class HTTPDModule extends PlexModule
|
|||
configuration.addCustomizer(new ForwardedRequestCustomizer());
|
||||
HttpConnectionFactory factory = new HttpConnectionFactory(configuration);
|
||||
ServerConnector connector = new ServerConnector(server, factory);
|
||||
connector.setPort(moduleConfig.getInt("server.port"));
|
||||
connector.setHost(moduleConfig.getString("server.bind-address"));
|
||||
connector.setPort(moduleConfig.getInt("server.port"));
|
||||
|
||||
new GetEndpoints();
|
||||
|
||||
|
@ -73,7 +74,7 @@ public class HTTPDModule extends PlexModule
|
|||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}, "jetty-server");
|
||||
}, "Jetty-Server");
|
||||
serverThread.start();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue