diff --git a/lib/api.js b/lib/api.js index cb0eb7f..412339e 100644 --- a/lib/api.js +++ b/lib/api.js @@ -38,9 +38,9 @@ namespace("Cylon", function() { key: fs.readFileSync(opts.key || __dirname + "/ssl/server.key") } - this.server.https = https.createServer(options, this.server); + this.server.node = https.createServer(options, this.server); } else { - this.server.https = this.server; + this.server.node = this.server; } this.server.set('title', 'Cylon API Server'); @@ -62,7 +62,7 @@ namespace("Cylon", function() { ApiServer.prototype.listen = function() { var self = this; - this.server.https.listen(this.port, this.host, null, function() { + this.server.node.listen(this.port, this.host, null, function() { var title = self.server.get('title'); Logger.info(title + " is now online."); Logger.info("Listening at https://" + self.host + ":" + self.port);