Permalink
Browse files

Fix host defaulting.

Defaulting the host wasn't working properly. Adjusted to support putting in an explicit host, otherwise don't use one at all.
  • Loading branch information...
1 parent 67979ca commit bc51b3ade0fc63802d37137ad50838524366daf4 @mojit0 mojit0 committed Oct 13, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/mojito.js
View
@@ -62,7 +62,6 @@ function MojitoServer(options) {
this._options = options || {};
this._options.port = this._options.port || process.env.PORT || 8666;
- this._options.host = this._options.host || "127.0.0.1";
// TODO: Note we could pass some options to the express server instance.
this._app = express.createServer();
@@ -470,8 +469,7 @@ MojitoServer.prototype.getHttpServer = function() {
* Begin listening for inbound connections.
* @param {Number} port The port number. Defaults to the server's value for
* options.port (which defaults to process.env.PORT followed by 8666).
- * @param {String} host The hostname or IP address in string form. Defaults to
- * 127.0.0.1.
+ * @param {String} host The hostname or IP address in string form.
*/
MojitoServer.prototype.listen = function(port, host, cb) {

0 comments on commit bc51b3a

Please sign in to comment.