Fix error when localhost resolves to ::1

Some systems may resolve localhost to ::1 while Factorio doesn't respond
to RCON connection over IPv6 loopback, this causes instances startup to
fail.  Fix by using 127.0.0.1 instead of localhost.
This commit is contained in:
Hornwitser committed 2021-11-15 21:29:51 +01:00
1 parent c889d8f325
commit a5a99e2ab1
1 file changed
+1 -1
+1 -1
View File
@@ -690,7 +690,7 @@ class FactorioServer extends events.EventEmitter {
}
let config = {
host: "localhost",
host: "127.0.0.1", // localhost may resolve to ::1 while Factorio listen to only IPv4 by default.
port: this.rconPort,
password: this.rconPassword,
timeout: 200000, // 200s, should allow for commands up to 1250kB in length