Fix server port being ignored
This commit is contained in:
parent
66b63f905a
commit
1e408d9e9a
1 changed files with 4 additions and 2 deletions
6
index.js
6
index.js
|
@ -27,6 +27,8 @@ linklist.push({'timestamp':'0000-00-00 00:00:00' , 'protocol': 'none' , 'device'
|
||||||
|
|
||||||
updatelinks();
|
updatelinks();
|
||||||
|
|
||||||
|
let serverPort = inifile.config.port;
|
||||||
|
|
||||||
const server = https
|
const server = https
|
||||||
.createServer(
|
.createServer(
|
||||||
{
|
{
|
||||||
|
@ -35,8 +37,8 @@ const server = https
|
||||||
},
|
},
|
||||||
app
|
app
|
||||||
)
|
)
|
||||||
.listen(443, ()=>{
|
.listen(serverPort, ()=>{
|
||||||
console.log('server is running at port 443')
|
console.log('server is running at port ' + serverPort)
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get('/', (req,res)=>{
|
app.get('/', (req,res)=>{
|
||||||
|
|
Loading…
Add table
Reference in a new issue