mirror of
https://github.com/Quackster/Havana.git
synced 2025-07-03 05:07:46 +00:00
Default to port 80 if port is not set for the figure imager
This commit is contained in:
parent
1e502e8e01
commit
a39cef9507
1 changed files with 1 additions and 3 deletions
|
@ -82,15 +82,13 @@ public class Watchdog implements Runnable {
|
|||
try {
|
||||
URL url = new URL(imagerPath);
|
||||
String hostname = url.getHost();
|
||||
int port = url.getPort();
|
||||
int port = url.getPort() == -1 ? url.getPort() : 80;
|
||||
|
||||
IS_IMAGER_ONLINE = isServerOnline(hostname, port);
|
||||
} catch (MalformedURLException e) { }
|
||||
|
||||
}
|
||||
|
||||
IS_SERVER_ONLINE = isServerOnline(ServerConfiguration.getString("rcon.ip"), ServerConfiguration.getInteger("rcon.port"));
|
||||
|
||||
IS_SERVER_ONLINE = isServerOnline(ServerConfiguration.getString("rcon.ip"), ServerConfiguration.getInteger("rcon.port"));
|
||||
USERS_ONLNE = Integer.parseInt(SettingsDao.getSetting("players.online"));
|
||||
LAST_VISITS = SiteDao.getLastVisits();
|
||||
|
|
Loading…
Add table
Reference in a new issue