diff --git a/server/index.js b/server/index.js index c5b86d9..72d525e 100644 --- a/server/index.js +++ b/server/index.js @@ -229,7 +229,7 @@ if (serverConfig.xdrd.wirelessConnection === false) { function connectToXdrd() { const { xdrd } = serverConfig; - if (xdrd.wirelessConnection) { + if (xdrd.wirelessConnection && configExists()) { client.connect(xdrd.xdrdPort, xdrd.xdrdIp, () => { logInfo('Connection to xdrd established successfully.'); diff --git a/server/server_config.js b/server/server_config.js index f4f769f..587897a 100644 --- a/server/server_config.js +++ b/server/server_config.js @@ -21,7 +21,7 @@ let serverConfig = { chatEnabled: true }, xdrd: { - wirelessConnection: "", + wirelessConnection: true, comPort: "", xdrdIp: "127.0.0.1", xdrdPort: 7373,