mirror of https://github.com/webbukkit/dynmap.git
Add support for web server bindaddress to be set to match MC server-ip setting
This commit is contained in:
parent
336f8302c4
commit
f1c9417237
|
@ -16,6 +16,7 @@ import java.util.concurrent.CancellationException;
|
|||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Chunk;
|
||||
import org.bukkit.ChunkSnapshot;
|
||||
|
@ -551,6 +552,11 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
|||
public double getServerTPS() {
|
||||
return tps;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getServerIP() {
|
||||
return Bukkit.getServer().getIp();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Player access abstraction class
|
||||
|
|
|
@ -282,7 +282,8 @@ tilespath: web/tiles
|
|||
webpath: web
|
||||
|
||||
# The network-interface the webserver will bind to (0.0.0.0 for all interfaces, 127.0.0.1 for only local access).
|
||||
webserver-bindaddress: 0.0.0.0
|
||||
# If not set, uses same setting as server in server.properties (or 0.0.0.0 if not specified)
|
||||
#webserver-bindaddress: 0.0.0.0
|
||||
|
||||
# The TCP-port the webserver will listen on.
|
||||
webserver-port: 8123
|
||||
|
|
Loading…
Reference in New Issue