From c08d97e6986fc92b176a6d8efb5f393613a18244 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Thu, 24 Oct 2019 15:11:21 +0200 Subject: [PATCH] Document change to instance ports and password Add entry to changelog detailing the change to null by default entries for the ports and password in the instance config, and update the comment in it to reflect the recent changes. --- CHANGELOG.md | 3 +++ client.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0f39e5b..f77e9fb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,9 @@ Version 2.0.0 copied on instance creation. - Instance id is no longer derived from the rcon password, instead it's generated upon instance creation and stored in the instance config. +- The game port, RCON port and RCON password instance config entries are are + now null by default, indicating that a random one will be generated every + time the instance is started. ### Breaking Changes diff --git a/client.js b/client.js index 41c3ab84..d4dd56db 100644 --- a/client.js +++ b/client.js @@ -305,7 +305,7 @@ async function createInstance(config, args, instance) { "id": Math.random() * 2 ** 31 | 0, "factorioPort": args.port || process.env.FACTORIOPORT || null, "clientPort": args["rcon-port"] || process.env.RCONPORT || null, - "__comment_clientPassword": "This is the rcon password. Its also used for making an instanceID. Make sure its unique and not blank.", + "__comment_clientPassword": "This is the rcon password. Will be randomly generated if null.", "clientPassword": args["rcon-password"] || null, "info": {} }