mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 15:43:13 +09:00
Fix installer setting bad controller_url
The host.controller_url config is required to end with a / for the url joining logic to work. Fix code added #619 setting this to a value not ending with a /.
This commit is contained in:
1 parent
a1856e6edf
commit
5a73a73c36
2 files changed
+2
-2
No files matched your search
@@ -904,7 +904,7 @@ async function main() {
|
||||
let hostToken = result.stdout.split("\n").slice(-2)[0];
|
||||
|
||||
// Default to localhost on correct port for host in standalone mode
|
||||
await execHost(["config", "set", "host.controller_url", `http://localhost:${answers.httpPort}`]);
|
||||
await execHost(["config", "set", "host.controller_url", `http://localhost:${answers.httpPort}/`]);
|
||||
await execHost(["config", "set", "host.controller_token", hostToken]);
|
||||
await execHost(["config", "set", "host.public_address", answers.publicAddress]);
|
||||
await execHost(["config", "set", "host.factorio_directory", answers.factorioDir]);
|
||||
|
||||
Reference in new issue
Block a user