mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-05-12 05:10:32 +00:00
Fix HTTPS server port fallback
Some checks failed
Continuous integration / test (push) Has been cancelled
Some checks failed
Continuous integration / test (push) Has been cancelled
This commit is contained in:
parent
bbbe882faf
commit
cc9f918066
1 changed files with 4 additions and 4 deletions
|
|
@ -46858,12 +46858,12 @@
|
|||
appPath: appPath,
|
||||
apiEndpoint: apiCertifficateEndpoint
|
||||
});
|
||||
var sserver = !1;
|
||||
if (process.env.NO_HTTPS_SERVER || ((sserver = https.createServer(app)).listen(12470),
|
||||
var sserver = !1, sport = 12470;
|
||||
if (process.env.NO_HTTPS_SERVER || ((sserver = https.createServer(app)).listen(sport),
|
||||
sserver.on("listening", (function() {
|
||||
console.log("EngineFS HTTPS endpoint at https://local.strem.io:12470");
|
||||
console.log("EngineFS HTTPS endpoint at https://local.strem.io:" + sserver.address().port);
|
||||
})), sserver.on("error", (function(err) {
|
||||
console.warn(err);
|
||||
sport++ < 12474 ? (console.warn(err), sserver.listen(sport)) : console.warn(err);
|
||||
}))), argv.open || process.env.OPEN) {
|
||||
var open = __webpack_require__(1119);
|
||||
server.on("listening", (function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue