Renaming https to generic node

This commit is contained in:
Javier Cervantes 2014-04-23 17:55:42 -05:00
parent cc3dac9442
commit 8f746f1d27
1 changed files with 3 additions and 3 deletions

View File

@ -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);