正在显示
3 个修改的文件
包含
3 行增加
和
8 行删除
... | ... | @@ -3,8 +3,6 @@ |
3 | 3 | |
4 | 4 | // Inspired by `bixby-server` by Jared Hanson |
5 | 5 | |
6 | -var https = require('https') | |
7 | -var http = require('http') | |
8 | 6 | var cluster = require('cluster') |
9 | 7 | var os = require('os') |
10 | 8 | var path = require('path') |
... | ... | @@ -49,11 +47,6 @@ exports = module.exports = function(logger, settings) { |
49 | 47 | |
50 | 48 | } else { |
51 | 49 | |
52 | - if (settings.server.ssl.enabled) | |
53 | - this.server = https.createServer(settings.server.ssl.options, this) | |
54 | - else | |
55 | - this.server = http.createServer(this) | |
56 | - | |
57 | 50 | this.server.listen(settings.server.port, settings.server.host, function() { |
58 | 51 | var addr = this.address() |
59 | 52 | logger.info('app listening on %s:%d', addr.address, addr.port) | ... | ... |
请
注册
或
登录
后发表评论