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: {
|
ports: {
|
||||||
radius_authentication: 1812,
|
radius_authentication: 1812,
|
||||||
radius_accounting: 1813,
|
radius_accounting: 1813,
|
||||||
api: 8080
|
api: 8088
|
||||||
},
|
},
|
||||||
storage: "json:./data.json",
|
storage: "json:./data.json",
|
||||||
client_secret: "password",
|
client_secret: "password",
|
||||||
default_vlan_enabled: false,
|
default_vlan_enabled: false,
|
||||||
mac_auth_only: false
|
mac_auth_only: false,
|
||||||
session_duration: 60
|
session_duration: 60
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -46,7 +46,7 @@ if (process.env['NETRADIUS_SESSION_DURATION']) config.session_duration = process
|
|||||||
// Set defaults
|
// Set defaults
|
||||||
if (!config.ports.radius_authentication) config.ports.radius_authentication = 1812;
|
if (!config.ports.radius_authentication) config.ports.radius_authentication = 1812;
|
||||||
if (!config.ports.radius_accounting) config.ports.radius_accounting = 1813;
|
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
|
// Display active configuration
|
||||||
log.write ('Using configuration: ' + JSON.stringify (config));
|
log.write ('Using configuration: ' + JSON.stringify (config));
|
||||||
@ -176,7 +176,7 @@ http.createServer (function (req, res) {
|
|||||||
respond (res, "Not found", 404);
|
respond (res, "Not found", 404);
|
||||||
|
|
||||||
}
|
}
|
||||||
}).listen (8080);
|
}).listen (config.ports.api);
|
||||||
log.write ("API listening on port " + config.ports.api);
|
log.write ("API listening on port " + config.ports.api);
|
||||||
|
|
||||||
// Exit handles
|
// Exit handles
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user