Update main.js
This commit is contained in:
parent
2a0607b3c1
commit
4d7bd43926
13
main.js
13
main.js
@ -195,17 +195,6 @@ function initWebServer(settings) {
|
||||
|
||||
adapter.log.info('config port: ' + settings.port);
|
||||
|
||||
adapter.getPort(settings.port, function (port) {
|
||||
if (port != settings.port && !adapter.config.findNextPort) {
|
||||
adapter.log.error('port ' + settings.port + ' already in use');
|
||||
process.exit(1);
|
||||
}
|
||||
webServer.listen(port, settings.bind, function() {
|
||||
adapter.log.info('Server listening on http' + (settings.secure ? 's' : '') + '://' + settings.bind + ':' + port);
|
||||
});
|
||||
});
|
||||
|
||||
/*
|
||||
if (settings.port) {
|
||||
if (settings.secure) {
|
||||
if (!adapter.config.certificates) {
|
||||
@ -229,7 +218,7 @@ function initWebServer(settings) {
|
||||
adapter.log.error('port missing');
|
||||
process.exit(1);
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
function pollData() {
|
||||
|
Loading…
Reference in New Issue
Block a user