diff --git a/code/index.js b/code/index.js index ad9b368..e413dce 100644 --- a/code/index.js +++ b/code/index.js @@ -24,12 +24,12 @@ catch (error) { ports: { radius_authentication: 1812, radius_accounting: 1813, - api: 8080 + api: 8088 }, storage: "json:./data.json", client_secret: "password", default_vlan_enabled: false, - mac_auth_only: false + mac_auth_only: false, session_duration: 60 } } @@ -46,7 +46,7 @@ if (process.env['NETRADIUS_SESSION_DURATION']) config.session_duration = process // Set defaults if (!config.ports.radius_authentication) config.ports.radius_authentication = 1812; if (!config.ports.radius_accounting) config.ports.radius_accounting = 1813; -if (!config.ports.api) config.ports.api = 8080; +if (!config.ports.api) config.ports.api = 8088; // Display active configuration log.write ('Using configuration: ' + JSON.stringify (config)); @@ -176,7 +176,7 @@ http.createServer (function (req, res) { respond (res, "Not found", 404); } -}).listen (8080); +}).listen (config.ports.api); log.write ("API listening on port " + config.ports.api); // Exit handles @@ -191,4 +191,4 @@ const exitHandler = () => { process.on ('SIGTERM', exitHandler); process.on ('SIGINT', exitHandler); process.on ('SIGUSR1', exitHandler); -process.on ('SIGUSR2', exitHandler); \ No newline at end of file +process.on ('SIGUSR2', exitHandler);