Fixed default API port to 8088 and fixed listening bug
This commit is contained in:
parent
3a58c19c44
commit
e9e774148b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user