From 8ff70a027688b59a26cefb69757bf5d53938012d Mon Sep 17 00:00:00 2001 From: Nicholas Jackson Date: Sun, 12 Aug 2018 00:50:51 +1000 Subject: [PATCH] conf: added support for ws server port configuration --- app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index fff8a28..9f3e889 100644 --- a/app.js +++ b/app.js @@ -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(