mirror of
https://github.com/Akkadius/glass-isc-dhcp.git
synced 2025-07-28 08:04:56 +02:00
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 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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user