Merge pull request #19 from nicholas-c-jackson/master

conf: added support for ws server port configuration
This commit is contained in:
Chris Miles 2018-08-13 19:52:52 -05:00 committed by GitHub
commit 14280f3cac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(