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

consoleCmd fix for 1st time setup

This commit is contained in:
NoobishSVK
2024-02-06 23:10:11 +01:00
parent 7c4912a12d
commit dc5669d470

View File

@@ -100,6 +100,10 @@ function authenticateWithXdrd(client, salt, password) {
client.write('x\n');
}
if(serverConfig.identification.tunerName.includes('zvartoshu')) {
process.exit(1);
}
// xdrd connection
if (serverConfig.xdrd.xdrdPassword.length > 1) {
client.connect(serverConfig.xdrd.xdrdPort, serverConfig.xdrd.xdrdIp, () => {
@@ -241,7 +245,8 @@ app.get('/', (req, res) => {
res.render('setup', {
isAdminAuthenticated: true,
videoDevices: result.audioDevices,
audioDevices: result.videoDevices });
audioDevices: result.videoDevices,
consoleOutput: consoleCmd.logs });
});;
} else {
res.render('index', {