mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 08:49:16 +02:00
consoleCmd fix for 1st time setup
This commit is contained in:
@@ -100,6 +100,10 @@ function authenticateWithXdrd(client, salt, password) {
|
|||||||
client.write('x\n');
|
client.write('x\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(serverConfig.identification.tunerName.includes('zvartoshu')) {
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
// xdrd connection
|
// xdrd connection
|
||||||
if (serverConfig.xdrd.xdrdPassword.length > 1) {
|
if (serverConfig.xdrd.xdrdPassword.length > 1) {
|
||||||
client.connect(serverConfig.xdrd.xdrdPort, serverConfig.xdrd.xdrdIp, () => {
|
client.connect(serverConfig.xdrd.xdrdPort, serverConfig.xdrd.xdrdIp, () => {
|
||||||
@@ -241,7 +245,8 @@ app.get('/', (req, res) => {
|
|||||||
res.render('setup', {
|
res.render('setup', {
|
||||||
isAdminAuthenticated: true,
|
isAdminAuthenticated: true,
|
||||||
videoDevices: result.audioDevices,
|
videoDevices: result.audioDevices,
|
||||||
audioDevices: result.videoDevices });
|
audioDevices: result.videoDevices,
|
||||||
|
consoleOutput: consoleCmd.logs });
|
||||||
});;
|
});;
|
||||||
} else {
|
} else {
|
||||||
res.render('index', {
|
res.render('index', {
|
||||||
|
|||||||
Reference in New Issue
Block a user