Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
muriplz committed Jan 17, 2024
1 parent 4607e10 commit 58bf123
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions src/main/java/com/kryeit/votifier/Votifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,7 @@ public void onInitializeServer() {
File rsaDirectory = new File("mods/votifier/rsa");
// Replace to remove a bug with Windows paths - SmilingDevil
String listenerDirectory = "mods/votifier/listeners";

/*
* Use IP address from server.properties as a default for
* configurations. Do not use InetAddress.getLocalHost() as it most
* likely will return the main server address instead of the address
* assigned to the server.
*/
String hostAddr = MinecraftServerSupplier.getServer().getServerIp();
if (hostAddr == null || hostAddr.length() == 0)
hostAddr = "0.0.0.0";


/*
* Create RSA directory and keys if it does not exist; otherwise, read
* keys.
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"host": "0.0.0.0",
"port": 8192,
"port": "8192",
"debug": false,
"listener-folder": "listeners"
}

0 comments on commit 58bf123

Please sign in to comment.