conf: added support for ws server port configuration
This commit is contained in:
parent
b5dc24ff7d
commit
8ff70a0276
3
app.js
3
app.js
|
@ -283,7 +283,8 @@ fs.watch('config/glass_config.json', function (event, filename) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const WebSocket = require('ws');
|
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;
|
options.interval = 300;
|
||||||
var tail_dhcp_log = new tail_module(
|
var tail_dhcp_log = new tail_module(
|
||||||
|
|
Loading…
Reference in New Issue