conf: added support for ws server port configuration

This commit is contained in:
Nicholas Jackson 2018-08-12 00:50:51 +10:00
parent b5dc24ff7d
commit 8ff70a0276
1 changed files with 2 additions and 1 deletions

3
app.js
View File

@ -283,7 +283,8 @@ fs.watch('config/glass_config.json', function (event, filename) {
*/
const WebSocket = require('ws');
const wss = new WebSocket.Server({port: 8080});
const ws_port = glass_config.ws_port || 8080;
const wss = new WebSocket.Server({port: ws_port});
options.interval = 300;
var tail_dhcp_log = new tail_module(