Merge pull request #428 from Hornwitser/fix-localhost-resolve

Fix error when localhost resolves to ::1
This commit is contained in:
Daniel authored and GitHub committed 2021-11-20 11:49:56 +01:00
commit c557b7d6b2
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