mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 08:03:13 +09:00
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:
1 parent
c889d8f325
commit
a5a99e2ab1
1 file changed
+1
-1
@@ -690,7 +690,7 @@ class FactorioServer extends events.EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let config = {
|
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,
|
port: this.rconPort,
|
||||||
password: this.rconPassword,
|
password: this.rconPassword,
|
||||||
timeout: 200000, // 200s, should allow for commands up to 1250kB in length
|
timeout: 200000, // 200s, should allow for commands up to 1250kB in length
|
||||||
|
|||||||
Reference in new issue
Block a user