Update main.js

This commit is contained in:
钟进 2018-09-25 12:22:18 +08:00
parent 2a0607b3c1
commit 4d7bd43926

13
main.js
View File

@ -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() {