mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-10 14:26:45 +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() {
|
||||
|
||||
//Info variables that don't change
|
||||
|
||||
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";
|
||||
}
|
||||
|
||||
address = GameServer.INSTANCE.getConfig().getString("mar_address");
|
||||
serverName = GameServer.INSTANCE.getConfig().getString("server_name");
|
||||
tickLength = GameServer.INSTANCE.getConfig().getInt("tick_length");
|
||||
}
|
||||
|
@ -7,8 +7,7 @@ use_ssl=0
|
||||
keyStore_path=certificates/keystore.jks
|
||||
keyStore_password=
|
||||
#Server
|
||||
mar_port=4567
|
||||
mar_address=localhost
|
||||
mar_address=ws://localhost:4567/socket
|
||||
server_name=MAR dev
|
||||
|
||||
#Database
|
||||
|
Loading…
x
Reference in New Issue
Block a user