mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-24 16:23:12 +09:00
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:
1 parent
d1fd4c3565
commit
50370bf858
1 file changed
+1
@@ -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
|
publicIP: config.publicIP, // IP of the server should be global for all instances, so we pull that straight from the config
|
||||||
mods:modHashes,
|
mods:modHashes,
|
||||||
instanceName: instance,
|
instanceName: instance,
|
||||||
|
info: instanceconfig.info,
|
||||||
}
|
}
|
||||||
if(playerCount){
|
if(playerCount){
|
||||||
payload.playerCount = playerCount.replace(/(\r\n\t|\n|\r\t)/gm, "");
|
payload.playerCount = playerCount.replace(/(\r\n\t|\n|\r\t)/gm, "");
|
||||||
|
|||||||
Reference in new issue
Block a user