Client.js now transmits IP needed to connect to slaves

This commit is contained in:
Danielv123 committed 2016-12-27 11:15:53 +01:00
1 parent 26a9c4f1ef
commit c33ca4abec
3 files changed
+8 -3

No files matched your search

+2 -1
View File
@@ -179,7 +179,8 @@ function getID() {
rconPort: instanceconfig.clientPort,
rconPassword: instanceconfig.clientPassword,
serverPort: instanceconfig.factorioPort,
unique: instanceconfig.clientPassword.hashCode()
unique: instanceconfig.clientPassword.hashCode(),
publicIP: config.publicIP, // IP of the server should be global for all instances, so we pull that straight from the config
}
require('getmac').getMac(function (err, mac) {
if (err) throw err