mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
Boot Status
This commit is contained in:
parent
e79429d863
commit
b0168d5eea
@ -10,6 +10,8 @@ exports.addresses = {
|
||||
internet: false
|
||||
}
|
||||
|
||||
exports.bootStatus = false;
|
||||
|
||||
exports.serveit = function (program, callback) {
|
||||
// TODO: Verify program variable
|
||||
|
||||
@ -158,6 +160,8 @@ exports.serveit = function (program, callback) {
|
||||
// TODO: Check if port is in use before firing up server
|
||||
server.on('request', mstream);
|
||||
server.listen(program.port, function () {
|
||||
exports.bootStatus = true;
|
||||
|
||||
let protocol = program.ssl && program.ssl.cert && program.ssl.key ? 'https' : 'http';
|
||||
|
||||
exports.addresses.local = protocol + '://localhost:' + program.port;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user