1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

connection boolean fix

This commit is contained in:
NoobishSVK
2024-11-07 19:24:47 +01:00
parent 21484dd6a2
commit df36b06931
2 changed files with 2 additions and 2 deletions

View File

@@ -229,7 +229,7 @@ if (serverConfig.xdrd.wirelessConnection === false) {
function connectToXdrd() { function connectToXdrd() {
const { xdrd } = serverConfig; const { xdrd } = serverConfig;
if (xdrd.wirelessConnection) { if (xdrd.wirelessConnection && configExists()) {
client.connect(xdrd.xdrdPort, xdrd.xdrdIp, () => { client.connect(xdrd.xdrdPort, xdrd.xdrdIp, () => {
logInfo('Connection to xdrd established successfully.'); logInfo('Connection to xdrd established successfully.');

View File

@@ -21,7 +21,7 @@ let serverConfig = {
chatEnabled: true chatEnabled: true
}, },
xdrd: { xdrd: {
wirelessConnection: "", wirelessConnection: true,
comPort: "", comPort: "",
xdrdIp: "127.0.0.1", xdrdIp: "127.0.0.1",
xdrdPort: 7373, xdrdPort: 7373,