mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-24 13:05:51 +00:00
Changed the way port configuration is done
This commit is contained in:
parent
64193ecf7a
commit
205845d6af
@ -15,17 +15,7 @@ public class ServerInfoRoute implements Route {
|
|||||||
public ServerInfoRoute() {
|
public ServerInfoRoute() {
|
||||||
|
|
||||||
//Info variables that don't change
|
//Info variables that don't change
|
||||||
|
address = GameServer.INSTANCE.getConfig().getString("mar_address");
|
||||||
if (GameServer.INSTANCE.getConfig().getInt("use_ssl") == 0) {
|
|
||||||
address = "ws://" +
|
|
||||||
GameServer.INSTANCE.getConfig().getString("mar_address") + ":" +
|
|
||||||
GameServer.INSTANCE.getConfig().getString("mar_port") + "/socket";
|
|
||||||
} else {
|
|
||||||
address = "wss://" +
|
|
||||||
GameServer.INSTANCE.getConfig().getString("mar_address") + ":" +
|
|
||||||
GameServer.INSTANCE.getConfig().getString("mar_port") + "/socket";
|
|
||||||
}
|
|
||||||
|
|
||||||
serverName = GameServer.INSTANCE.getConfig().getString("server_name");
|
serverName = GameServer.INSTANCE.getConfig().getString("server_name");
|
||||||
tickLength = GameServer.INSTANCE.getConfig().getInt("tick_length");
|
tickLength = GameServer.INSTANCE.getConfig().getInt("tick_length");
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,7 @@ use_ssl=0
|
|||||||
keyStore_path=certificates/keystore.jks
|
keyStore_path=certificates/keystore.jks
|
||||||
keyStore_password=
|
keyStore_password=
|
||||||
#Server
|
#Server
|
||||||
mar_port=4567
|
mar_address=ws://localhost:4567/socket
|
||||||
mar_address=localhost
|
|
||||||
server_name=MAR dev
|
server_name=MAR dev
|
||||||
|
|
||||||
#Database
|
#Database
|
||||||
|
Loading…
x
Reference in New Issue
Block a user