Merge pull request #1 from F4FXL/main

Fix server port being ignored
only_http
John Hays (K7VE) 11 months ago committed by GitHub
commit 649dcd51b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,6 +27,8 @@ linklist.push({'timestamp':'0000-00-00 00:00:00' , 'protocol': 'none' , 'device'
updatelinks();
let serverPort = inifile.config.port;
const server = https
.createServer(
{
@ -35,8 +37,8 @@ const server = https
},
app
)
.listen(443, ()=>{
console.log('server is running at port 443')
.listen(serverPort, ()=>{
console.log('server is running at port ' + serverPort)
});
app.get('/', (req,res)=>{

Loading…
Cancel
Save