From 81f554334bbe6147e44bdd1911aaba9ed344bcc2 Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Sat, 2 Apr 2022 00:35:39 -0500 Subject: [PATCH] i give up --- build.gradle.kts | 1 - src/main/java/dev/plex/HTTPDModule.java | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 3d43f63..59a0642 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,7 +2,6 @@ plugins { java `maven-publish` idea -// id("com.github.johnrengelman.shadow") version "7.1.2" } group = "dev.plex" diff --git a/src/main/java/dev/plex/HTTPDModule.java b/src/main/java/dev/plex/HTTPDModule.java index 08ea1a2..4517e8e 100644 --- a/src/main/java/dev/plex/HTTPDModule.java +++ b/src/main/java/dev/plex/HTTPDModule.java @@ -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(); }