1/2 Add "info" field between client and master

Adds a "info" field to config.json and allows the client to send the contents of this info field to the master, so it also shows up (i.e. with /api/slaves)
This commit is contained in:
Master-Guy authored and GitHub committed 2019-07-17 18:35:02 +02:00
1 parent d1fd4c3565
commit 50370bf858
1 file changed
+1
+1
View File
@@ -673,6 +673,7 @@ async function instanceManagement(instanceconfig) {
publicIP: config.publicIP, // IP of the server should be global for all instances, so we pull that straight from the config
mods:modHashes,
instanceName: instance,
info: instanceconfig.info,
}
if(playerCount){
payload.playerCount = playerCount.replace(/(\r\n\t|\n|\r\t)/gm, "");